Search code examples
svnhookpost-commitpost-commit-hook

How do I make Subversion (SVN) send email on checkins?


I've always found checkin (commit) mails to be very useful for keeping track of what work other people are doing in the codebase / repository. How do I set up SVN to email a distribution list on each commit?

I'm running clients on Windows and the Apache Subversion server on Linux. The answers below for various platforms will likely be useful to other people though.


Solution

  • You use the post-commit hooks.

    Here's a sample Ruby script that sends an email after each commit: commit-email.rb