Subversion/EmailNotification

HomePage | Subversion | RecentChanges | Preferences

1. How to enable email notification of commits
1.1. The email script
1.2. The post-commit hook
1.3. Followup

1. How to enable email notification of commits

1.1. The email script

1.2. The post-commit hook

In /path/to/repo/hooks

  cp post-commit.tmpl post-commit
  chmod +x post-commit

Modify post-commit to contain

/path/to/scripts/commit-email.pl "$REPOS" "$REV"  me@example.com

1.3. Followup

Test it with the path to your repository and a revision number:

./post-commit /path/to/repo  5

Examine any errors and fix them.

I had to change the command in post-commit to include a 'from' address, like so:

/path/to/scripts/commit-email.pl "$REPOS" "$REV"  --from me@example.com  me@example.com

Then I decided I wanted the subject line prefixed with 'svn commit:', so this is the final version:

/path/to/scripts/commit-email.pl "$REPOS" "$REV"  --from me@example.com  -s "svn commit:" me@example.com

No notification of changes to commit msg ?


HomePage | Subversion | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited January 21, 2007 8:30 pm by WendySmoak (diff)
Search: