Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 905
Joe Ludwig Avatar asked Aug 11 '08 16:08

Joe Ludwig


People also ask

Is subversion and SVN same?

SVN stands for Subversion. So, SVN and Subversion are the same. SVN is used to manage and track changes to code and assets across projects.


2 Answers

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

like image 181
pix0r Avatar answered Oct 07 '22 16:10

pix0r


Have a look at the standalone Subversion Notify tool (Windows only!) It can do emailing on commit and also much more!

like image 29
Marius Avatar answered Oct 07 '22 15:10

Marius