Pretty SVN commit emails: templates [closed]
Asked Answered
E

7

9

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.

Emulsoid answered 10/5, 2010 at 7:58 Comment(1)
What do you mean by pretty? HTML?Chlorosis
T
2

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.

Takakotakakura answered 26/5, 2010 at 20:25 Comment(0)
G
1

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}
Giraudoux answered 21/12, 2010 at 23:42 Comment(0)
N
1

SVNNotify is not perfect, but is really good

Northing answered 11/7, 2011 at 8:0 Comment(0)
S
0

You can get the commit data from 'svn log --xml -v -r $REV' and filter the output through a xslt processor. There are some procjects which uses this workflow, like an RSS Generator or a changelog generator.

Schiro answered 25/5, 2010 at 7:49 Comment(0)
C
0

I find this one pretty useful because it includes a diff.

Chlorosis answered 26/5, 2010 at 18:24 Comment(0)
N
0

Good template would include a link to a review board (chatroom about the revision) and the case id. It also needs to have every changed file as a link to some websvn diff.

Novak answered 26/5, 2010 at 21:16 Comment(0)
B
-1

I'm using this: commit-email.pl

and post commit hook:

REPOS="$1"
REV="$2"
MAILNAME=`cat /etc/mailname`
REPONAME=$(basename $REPOS)

/var/local/lib/svn/commit-email.pl "$REPOS" "$REV" -s "[$REPONAME]" -h $MAILNAME --from "SVN" [email protected]
Bujumbura answered 10/5, 2010 at 8:13 Comment(1)
which is the default one i pointed to, thats not at all prettyEmulsoid

© 2022 - 2024 — McMap. All rights reserved.