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

Joe Ludwig picture Joe Ludwig · Aug 11, 2008 · Viewed 74.7k times · Source

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.

Answer

pix0r picture pix0r · Aug 11, 2008

You use the post-commit hooks. Here's a guide.

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