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 email@something.ca -f $CVSROOT/CVSROOT/commitlog -s %s -S
    • Replace project_name_w_path with a module match string, for example: products/devcreek
    • Replace email@something.ca 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/patch.py?id=1251060071381272126062871

Modified files:
	ca.intelliware.ponderosa.analytics/src/ca/intelliware/devcreek/analytics/core/reports/html:
	                                                                                            HtmlReportWriter.java
	                                                                                            ReportsDirectory.java
	ca.intelliware.ponderosa.analytics/src/ca/intelliware/devcreek/analytics/core/analysis/gratis:
	                                                                                               HistoricalActivityAnalysis.java

Old revision  New revision  Changes     Path
 1.7           1.8           +2 -2       ca.intelliware.ponderosa/ca.intelliware.ponderosa.analytics/src/ca/intelliware/devcreek/analytics/core/reports/html/HtmlReportWriter.java
 1.5           1.6           +14 -2      ca.intelliware.ponderosa/ca.intelliware.ponderosa.analytics/src/ca/intelliware/devcreek/analytics/core/reports/html/ReportsDirectory.java
 1.3           1.4           +8 -8       ca.intelliware.ponderosa/ca.intelliware.ponderosa.analytics/src/ca/intelliware/devcreek/analytics/core/analysis/gratis/HistoricalActivityAnalysis.java

It's only fair to share...
Share on FacebookGoogle+Tweet about this on TwitterShare on LinkedIn

Leave a Reply