[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Email postcommit hook, subscription, properties ....

From: John Peacock <john.peacock_at_havurah-software.org>
Date: 2007-11-02 18:20:06 CET

Harvey, Edward wrote:
> Hey y'all. I have a few repositories with a bunch of users, and a
> zillion files/folders inside.
>
> The users wish to have email alerts when somebody changes a file of
> interest. So I'm trying to provide something like "watch this item" ...
> It is natural to look at post commit hooks, but it is not appropriate
> for every user to get email about every change. It would simply be too
> much.
>
> So I'm looking for suggestions and/or alternatives. Any ideas?

If you aren't averse to Perl, then SVN::Notify and SVN::Notify::Config
can do this. The former is the e-mail part and the latter is the "make
it trivial to produce a post-commit script" part. SVN::Notify::Config
can even store the config file itself in the repo, so that the entire
post-commit script becomes:

#!/usr/bin/perl -MSVN::Notify::Config=file://$1/svnnotify.yml

I could easily see scripting that to give people a nice clicky on a web
browser of the repo to select which files they wanted to "watch".

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 2 18:20:32 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.