Goodie SVN Email

Goodie SVN Email

Posted by: tgraupmann
Posted on: 2007-04-22 10:41:00

I was wondering if it's possible to configure SVN to send an email notification any time there is a checkin?

In reply to:

The Subversion distribution includes a commit-email.pl script (located in the tools/
hook-scripts/ directory of the Subversion source tree) that can be used to send email with
(and/or append to a log file) a description of a given commit. This mail contains a list of the paths
that were changed, the log message attached to the commit, the author and date of the commit, as
well as a GNU diff-style display of the changes made to the various versioned files as part of the
commit.



http://svnbook.red-bean.com/en/1.0/svn-book.pdfEdited by tgraupmann on 04/22/07 10:47 AM (server time).

Re: Goodie SVN Email

Posted by: deansfurniture5
Posted on: 2007-04-22 11:19:00

Yes, I believe you can. I just took a look in my SVN install on DH and there is a hooks folder, so you'd be able to add any scripts you want there.

Re: Goodie SVN Email

Posted by: tgraupmann
Posted on: 2007-04-22 11:45:00

Yeah it looks like there are files in the hooks folder:
post-commit.tmpl pre-commit.tmpl start-commit.tmpl
post-revprop-change.tmpl pre-revprop-change.tmpl

post-commit.tmpl contains the following line:
/usr/lib/subversion/hook-scripts/commit-email.pl "$REPOS" "$REV" commit-watchers@example.org

Hopefully example.org hasn't been watching our checkins?

Re: Goodie SVN Email

Posted by: tgraupmann
Posted on: 2007-04-22 12:09:00

When somebody figures it out. Please post on the wiki.
http://wiki.dreamhost.com/Subversion#Setting_up_post_commit_emails

Tags: email notificationsend an emailsvnmailreplysubversionpl scriptserver timegoodieappendhookscripts