Monday, October 16th, 2006

Better email notifications in subversion

Filed under: — Daniel Lemire @ 20:56

Subversion is a great version control tool, but the scripts that accompany it are still immature. One of them, commit-email.pl is particularly bad. It goes on and on for hundreds of lines, and the end result is very poor usability. Earlier tonight, I found a better solution on the Web with color and all, then I fixed it. But I can’t figure out who I stole this from. In any case, here is my fixed commit-email.rb (run gunzip on it first). You may have to change the first line. To activate the script, edit the post-commit file of you repository (or create it from post-commit.tmpl) and make sure you have the following:


REPOS="$1"
REV="$2"
./commit-email.rb "$REPOS" "$REV"

where “commit-email.rb” is located in the same directory as “post-commit”.

2 Comments »

  1. Hi, another solution that found most usefull is to use fisheye from cenqua (http://cenqua.com/fisheye) which has email notification :)

    Comment by opensourcereader — 23/10/2006 @ 17:21

  2. Another solution that might work for you is SVNRevMailer ( http://dev.vdburgh.net/projects/SVNRevMailer/ )
    If you schedule this tool it will notify you (by e-mail) of all changes in the specified repositories since the last run.

    Comment by nxt — 3/1/2007 @ 11:39

RSS feed for comments on this post.

Leave a comment

Warning: When entering a long comment, please ensure that you make copy of your text prior to submitting it. If the server should fail or if you hit a bug, you might lose your work. I am not responsible for your lost effort.

To spammers: I carefully review every single post and make sure that spam gets deleted. You are wasting your time if you are manually entering spam using this form. Read my terms of use to see what I consider to be abusive.

Example: I + II + IX= XII. Yes, you have to enter a roman numeral. (Answer must be in upper case.)

« Blog's main page

30 queries. 1.178 seconds. Valid XHTML

Powered by WordPress

Subscribe to this blog in a reader or by Email.