[KLUG Members] CVS Notification

members@kalamazoolinux.org members@kalamazoolinux.org
Wed, 15 May 2002 10:21:21 -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.

Ok, in customary geek fashion I relaized what my problem was about 30 seconds
after sending the message.  TERMINOLOGY!!!  A notification is sent upon an
operation performed up on file with watchers assigned.  What I wanted was loginfo.

I added 

DEFAULT (echo ""; id; echo %{sVv}; date; cat)  | mail -s "CVS Commit
Notification" cvsnotify@morrison.iserv.net

to /var/cvs/CVSROOT/loginfo and commits all send to the alias.
Very nice.

No more entering a description of the change into cvs,  and then sending an
e-mail to the relevant parties. Wooo Hooo!