[KLUG Members] CVS Notification

members@kalamazoolinux.org members@kalamazoolinux.org
Wed, 15 May 2002 09:58:08 -0400


I've been using CVS for quite some time now, and it works great.  

My setup is a pserver authenticated CVS host (actually the passwords are null,
since this is on a safe internal network).  My clients are either the command
line cvs, GNOME CVS (gcvs) or WinCVS.

I want to setup notification.  So when someone does a commit the comment gets
sent to a mail alias 'cvsnotify'.  This lets project people see how the code is
progressing.  Only I can't get notifications to fire.

In /var/cvs/CVSROOT/notify I have -
ALL /bin/mail %s -s "CVS notification"

In /var/cvs/CVSROOT/passwd I have -
anonymous::cvs
adam::cvs
rhopkins::cvs
steve::cvs
mcarmody::cvs

If I
[root@natches CVSROOT]# ls -lu notify* passwd*
-r--r--r--    1 root     cvsuser       568 May 15 09:55 notify
-r--r--r--    1 root     cvsuser       764 May 15 09:55 notify,v
-rw-r--r--    1 root     root           25 May 15 09:56 passwd

then on my client I
lnx01688:/usr/local/www-devel/html/adam/php-morrison $cvs edit truck.class
lnx01688:/usr/local/www-devel/html/adam/php-morrison $vi truck.class
lnx01688:/usr/local/www-devel/html/adam/php-morrison $cvs commit -m "Test"
truck.class
Checking in truck.class;
/var/cvs/php-morrison/truck.class,v  <--  truck.class
new revision: 1.6; previous revision: 1.5
done

then I
[root@natches CVSROOT]# ls -lu notify* passwd*
-r--r--r--    1 root     cvsuser       568 May 15 09:55 notify
-r--r--r--    1 root     cvsuser       764 May 15 09:55 notify,v
-rw-r--r--    1 root     root           25 May 15 09:58 passwd

I see that the cvs server process looked in passwd,  but it never even checked
the contents of notify.  And no messages were sent.

So I think I (and the docs) are overlooking something elementary