One of the cool things about CVS that I've found incredibly useful at work is getting commit (check-in) notifications via e-mail. I've long wished I knew how to set that up for some of my personal repositories. Specifically, I had my book repository in mind. Since there are two of us collaborating, it'll be easier to know when the other has done something.
It turns out that it's really not rocket surgery at all. In the CVSROOT directory is a file called loginfo. By adding a line like this to it:
^book /usr/bin/Mail -s [book cvs]: %s email@example.com
We're able to get the e-mail upon commit. More information is here in the CVS manual.
Posted by jzawodn at November 08, 2003 06:27 PM