Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pretty SVN commit emails: templates [closed]

Where can I find good templates for svn commit emails?

Google led me to this. Even though it was much better than the default post-commit, I didn’t find it very useful.

Help much appreciated.

like image 238
Quintin Par Avatar asked May 10 '10 07:05

Quintin Par


3 Answers

I have found a combination of SVNSpam and the native python scripts to work very well. SVNSpam sends a html email with colored diffs which are really easy to read.

There is a bug in SVNSpam that wont allow it to handle binary files. So, in the post-commit hook I set up the usual python mailer script that comes with SVN Hooks package. I have it so that if SVNSpam returns an error code (and it only does so for binary diffs and tagging), the python mailer script is called. This handles everything very well for us.

like image 152
omermuhammed Avatar answered Oct 20 '22 23:10

omermuhammed


SVNNotify is not perfect, but is really good

like image 31
zaguan Avatar answered Oct 20 '22 23:10

zaguan


The script from http://blog.hungrymachine.com/2007/11/5/pretty-svn-commit-emails/ generates extra newlines for the changeset. You can eliminate those extra newlines by removing '\n' from the end of line 52.

52 body << %Q{<font style="color:#{color}">#{CGI.escapeHTML(line)}</font><br/>\n}
like image 1
Sarat Avatar answered Oct 20 '22 23:10

Sarat