[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

why pserver and sending multiple emails

From: Peter Lynch
Subject: why pserver and sending multiple emails
Date: Tue, 21 May 2002 12:37:44 -0700 (PDT)


I recently added and via
loginfo. Everything works fine when commiting sources
from sandboxes on the cvs home machine where
CVSROOT=/cvsroot. However, when commiting changes via
pserver remotely, two emails are sent for evey commit,
the emails looking identical. Even if I use pserver
protocal on same machine as /cvsroot, I get the same
problem: two emails.

I am using server/client version 1.11.1p1.

Here is what I have in loginfo:

modulename (echo "Exceuting loginfo...";
/usr/local/bin/perl $CVSROOT/CVSROOT/util/
-d -m address@hidden %s)

And in a script called from commitinfo:

if $CVSROOT/CVSROOT/util/ ${1+"$@"};
   exit 0
exit 1

When I add a debugging line immediately before the
call to mail_notification inside I see it
printed twice, as below:

Checking in README.txt;
/cvsroot/CVSROOT/util/README.txt,v  <--  README.txt
new revision: 1.22; previous revision: 1.21
Debug turned on...
module - CVSROOT
dir    - CVSROOT/util/
path   - CVSROOT:util
files  - CVSROOT/util:README.txt
id     - 249
Searching for log file index... found log file at
0.249, now writing tmp files.
Checking current dir against last dir.
Current directory CVSROOT/util is last directory
/cvsroot/CVSROOT/util -- all commits done.
###### Beginning the final log
message...format_lists(): CVSROOT/util/:README.txt
format_names(): dir = CVSROOT/util/; files =
main: pre-sort changed_files =
main: post-sort changed_files =
main(): doing 'cvs -nQq status -v README.txt'
cvs server: Rebuilding administrative file database
###### Calling mail_notification from line 568..######
Calling mail_notification from line 568..

No other statements are being printed twice??
And log_accum cleans up the temp directory just fine
all the files it uses there.

Something else I noticed. When I pass "-s" to, preventing status from being reported,
only one email is sent.

So to review, :
1. I get two emails, using pserver protocol
2. I get two emails, from both remote client and
locally using pserver
3. temp files are cleaned up correctly despite two
4. the mail_notification function in log_accum is
called twice, but it appears no other code in is executed twice.
5. disabling the use of cvs status inside log_accum
results in one email being sent so everything appears
fine using pserver. 
6. when status is on using pserver two emails are
sent, but neither contains a status report.
7. I have a similar script that does a cvs diff. It
bahaves the same in that not using the diff part
results in one email, but using it means two.

I'm baffled. Anyone get these scripts to behave using
pserver? Ideas? Is it something to do with the shell
on the server using pserver? help....



Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience

reply via email to

[Prev in Thread] Current Thread [Next in Thread]