[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Simple email notification for commits

From: Ernest L. Williams Jr. <ernesto_at_ornl.gov>
Date: 2006-09-02 02:28:54 CEST

Hi,

Again, I come to SVN community as a rookie.

My question today is how to transfer my existing CVS like email
notification scheme to SVN with the least resistance?

I do not want to use any additional third party products only the SVN
distro.

Basically, I need to translate what I have in
"<path-to-repository>/CVSROOT/loginfo" to the SVN equivalent.

Can someone give me an example?

My CVS loginfo file looks like so:

=========== loginfo ================================================
# The "loginfo" file is used to control where "cvs commit" log
#information is sent. The first entry on a line is a regular expression
# which is tested
# against the directory that the change is being made to, relative to
#the $CVSROOT. For the first match that is found, the remainder of the
#line is a filter program that should expect log information on its
#standard input
#
# If the repository name does not match any of the regular expressions
#in the first field of this file, the "DEFAULT" line is used, if it is
#specified.
#
# If the name "ALL" appears as a regular expression it is always used
# in addition to the first matching regex or "DEFAULT".
#
# The filter program may use one and only one "%s" modifier (ala
#printf). If such a "%s" is specified in the filter program, a brief
#title is included (as one argument, enclosed in single quotes) showing
#the relative directory name and listing the modified file names.
#
# For example:
#DEFAULT (echo ""; who am i; echo %s; date; cat) >>
$CVSROOT/CVSROOT/commitlog
ALL mail -s %s ernesto@myplace.com biguser@myplace.com
project1 mail -s %s user1@myplace.com user2@myplace.com
project2 mail -s %s user3@myplace.com user4@myplace.com
project3 mail -s %s user5@myplace.com
project4 mail -s %s user6@myplace.com user7@myplace.com
project5 mail -s %s user1@myplace.com user5@myplace.com

================ loginfo ==========================================

The above gives nice emails from the user who made the commit, log
message description and the files that were modified.

Thanks,
Ernesto

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 2 02:30:08 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.