Some users would like to get email when someone commits a change to CVS.
For email about changes to SVN repositories, see Setting up SVN Email.
To set up CVS mail, the admin of
the workgroup should go to the Admin->Configure Group page
and click on CVS mail list
.
This will send email to the website managers
who will create the mailing list.
Group admins should read the softdevel CVS How do I set it up so that I get email whenever someone commits a change? question and follow the instructions.
The second step is to edit the
CVSROOT/loginfo
file.
GSRC: If the CVS repository home directory is
/home/cvs
, then you would edit
/home/cvs/CVSROOT/loginfo
by
using cvs itself to check it out.
Chess: If the CVS repository home directory is
/home/cvs_chess
, then you would edit
/home/cvs_chess/CVSROOT/loginfo
(For details, see
http://www.loria.fr/~molli/cvs/doc/cvs_2.html#SEC20
)
For CHESS, E3s, Embedded or Trust CVS repositories,
substitute in the appropriate directory
(cvs_chess
, cvs_e3scenter
,
cvs_embedded
, cvs_trust
.
For CHESS:
cvs -d :ext:source.eecs.berkeley.edu:/home/cvs_chess co CVSROOTThen edit
CVSROOT/loginfo
.
mvsis/.* mailx -s "%s" mvsis-cvs@gigascale.org
chess.eecs.berkeley.edu
mvsis/.* mailx -s "%s" mvsis-cvs@chess.eecs.berkeley.edu
Note that theOR See below for using log_accum.pl, which gives better results.%s
should be inside double quotes, see the CVSNEWS
file for changes between cvs-1.11 and cvs-1.11.1 for details. See also loginfo section of "How do I install CVS?"
cvs commit -m "Added cvs mail for mvsis" loginfoWhen you do the commit, the
/home/cvs/CVSROOT/loginfo
file will
automagically be updated.
cvs -d :ext:source.eecs.berkeley.edu:/home/cvs co CVSROOT
commitinfo
^ptII $CVSROOT/CVSROOT/commit_prep.pl
loginfo
^ptII $CVSROOT/CVSROOT/log_accum.pl %sNote that there is no need to use double quotes around the
%s
.
mailhost
ptII ptexternal-cvs@chess.eecs.berkeley.edu
cvs commit -m "Added diffs support for ptII"
CVSROOT/log_accum.pl
, which was originally
obtained from Kepler.
Installation hints can be found at Email Notification I did the following:
log_accum.pl
and
commit_prep.pl
You'll need a kepler cvs account
cvs -d :ext:brooks@cvs.ecoinformatics.org:/cvs co CVSROOT
cvs -d :ext:source.eecs.berkeley.edu:/home/cvs co CVSROOT
log_accum.pl
and
commit_prep.pl
in to the chess CVSROOT
checkoutlist
and add
commit_prep.pl log_accum.pl mailhosts
log_accum.pl
commitinfo
^ptII $CVSROOT/CVSROOT/commit_prep.pl
loginfo
^ptII $CVSROOT/CVSROOT/log_accum.pl %s
mailhost
ptII ptexternal-cvs@chess.eecs.berkeley.edu
cvs add commit_prep.pl log_accum.pl mailhosts cvs commit -m "Added diffs support"
mail
program. If the user does not have access to
a mail
program, then you will see
Mailing the commit message... sh: mail: not foundLocally, we did:
cp /usr/ucb/mail /users/cvsuser/bin
@eecs.berkeley.edu
email addresses, then
further modifications are necessary
~/.forward
file for the user.
~elvis/.forward
would
contain elvis@graceland.com
.
/etc/mail/sendmail.cf
and add the user to the line that starts with
C{E}root
. This will prevent email from
that user being masqueraded to user@eecs.berkeley.edu
reap/.* /home/cvs_chess/CVSROOT/log.pl -m reap-cvs@chess.eecs.berkeley.edu -s %s
Security note: At this time, anyone who has cvs write access to the repository can make the above change. However, this seems a little risky, so we are not telling anyone about it.