[Box Backup-dev] Commit emails

Martin Ebourne boxbackup-dev@fluffy.co.uk
Thu, 08 Dec 2005 08:52:02 +0000


Ben,

I think it would be a good idea to set up svn to send commit emails to
this list. Help people keep on top of what is happening as we go
forwards, and help encourage peer review.

Should be pretty easy. An example script comes with svn and on fedora is
located here:

/usr/share/doc/subversion-1.2.3/tools/hook-scripts/commit-email.pl

In the 'hooks' subdirectory in the repository location there should be a
post-commit.tmpl file. This needs renaming to 'post-commit', making sure
it is executable, and editing to give the right options to
commit-email.pl (with path). There are also a couple of options which
may want changing at the top of commit-email.pl itself.

If you only wanted to send emails for trunk commits and not branches
then you can do that with the -m option to commit-email.pl.

Cheers,

Martin.