Email Notification in CVS

CVS can be extended to send an email notification summarising the changes of the commits to modules. This can be useful on teams as a basic mechanism to keep members in sync with when changes are made to a shared code base.

Setup Notifications

  • Checkout the CVSROOT/loginfo file from CVS to your local machine
  • Add a line to the local logininfo:
project_name_w_path /usr/bin/perl $CVSROOT/CVSROOT/log_accum -m -f $CVSROOT/CVSROOT/commitlog -s %s -S
    • Replace project_name_w_path with a module match string, for example: products/devcreek
    • Replace with the email address for the receiver of the commit notice, for example a team distribution email address
  • Commit loginfo back into CVS

Example Notification

An example of the contents of a commit notification email:

From: cvs
Sent: August 23, 2009 4:41 PM
To: devcreek
Subject: [CVS] DGJ - Link in System-Historical report to data points rendering.

ChangeSet ID:	1251060071381272126062871
CVSROOT:	/data/cvsroot
Module name:	ca.intelliware.ponderosa
Changes by:	cvs	2009/08/23 16:41:11

Log message:
	DGJ - Link in System-Historical report to data points rendering.
Flip order of charts within system-Historical because the this-last-average week chart confuses interpretation of colours for following charts so moved to end

Patch: http://cvs/

Modified files:

Old revision  New revision  Changes     Path
 1.7           1.8           +2 -2       ca.intelliware.ponderosa/
 1.5           1.6           +14 -2      ca.intelliware.ponderosa/
 1.3           1.4           +8 -8       ca.intelliware.ponderosa/

It's only fair to share...
Share on Facebook
Tweet about this on Twitter
Share on LinkedIn

Leave a Reply