On 6/7/07, Steve Finkelstein <firstname.lastname@example.org> wrote:
> Hi all,
> Would anyone be able to give me insight on some documentation which
> would help me implement a hook to our webDAV based svn repository notify
> us whenever any code is committed?
> Eventually I'd like to do some filtering, and archived e-mailing for all
> commits done in one day. But to start, a commit per transaction e-mail
> would be excellent. Archived option would be even better.
Subversion source code comes with a (perl) script called commit-email.pl.
This is in the tools/hook-scripts directory.
So all you have to do is to configure a post commit hook (
http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-5-sect-2.1) and in
that script call
<svn-install-dir>/tools/hook-scripts/commit-email.pl "$1" "$2"
You would normally want to copy the script to a different location and
customize the script (may be you want to change the subject or something to
something that is more specific to what you need).
Received on Fri Jun 8 07:19:17 2007