next up previous contents
Next: Getting cvsweb Up: CVS Administration Notes Previous: Handling Binary Files   Contents


Automatic Email Notification of Changes

To receive a copy of the log message via email with every change to a project, specify an email command in the CVSROOT/loginfo file. We use a dedicated email list for sites where changes are fast and furious, and send all other commit email to a general listserv.

  1. Make yourself a working copy of the CVSROOT configuration files. Change into a working directory and issue the command:
    $ cvs co CVSROOT
        
  2. Edit the file CVSROOT/loginfo and indicate which module names or regular expressions should generate an email when an update is committed to the CVS repository, and the appropriate Mail command. Here's the loginfo file we've got in place:
    ^californiamar  /usr/bin/Mail -s "%{} update now available" interact
    ^calpacifichom  /usr/bin/Mail -s "%{} update now available" calpac
    ^calstrawberry  /usr/bin/Mail -s "%{} update now available" calstraw
    ^interactivate  /usr/bin/Mail -s "%{} update now available" interact
    ^padres         /usr/bin/Mail -s "%{} update now available" padres
    ^workforce      /usr/bin/Mail -s "%{} update now available" interact
    ^imagebase      /usr/bin/Mail -s "%{} update now available" imagebase
    ### Anything that doesn't get noticed above, send to the CVS-Admin to check
    DEFAULT         /usr/bin/Mail -s "%{} unknown CVS commit" sean@interactivate.com
    
  3. Commit your changes to the CVS repository:
    $ cvs commit -m"updated email-on-commit"
    cvs commit: Examining .
    Checking in loginfo;
    /usr/local/cvs-repository/CVSROOT/loginfo,v  <--  loginfo
    new revision: 1.13; previous revision: 1.12
    done
    cvs server: Rebuilding administrative file database
        


next up previous contents
Next: Getting cvsweb Up: CVS Administration Notes Previous: Handling Binary Files   Contents

copyright © 1997-1999 sean dreilinger.