Goodie SVN Email


#1

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

[quote]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.[/quote]

http://svnbook.red-bean.com/en/1.0/svn-book.pdf


#2

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.


For 30% more diskspace, 30% more bandwidth, and $40 off use promo code [color=#CC0000]THEFULLMONTY[/color]

fidgeting.net


#3

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?

After making a change to this file is a restart of SVN needed?


#4

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