[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: Micah Elliott <mde_at_micahelliott.com>
Date: 2007-11-02 18:22:00 CET

On 2007-11-02 Harvey, Edward wrote:

> 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.

It's a Best Practice to have a "commits" mailing list. (See
Karl's new book, Producing Open Source Software
(http://producingoss.com/) for details.)

I like Mailman (http://www.gnu.org/software/mailman/index.html)
quite a bit for hosting my commits lists. I haven't set up the
topical granularity you've mentioned but it should be possible
without much tweaking: Mailman provides "topics" which let you
specify a regex pattern for email subjects.

So you should be able to set up svnnotify
(http://search.cpan.org/dist/SVN-Notify/) in a hook to put the
path of the change into the subject. Then you would have a topic
regex that would capture each top level directory. Your users
would be "subscribed" only to the topics (directories) that
really interest them.

-- 
                          _ _     ___
                          |V|icah |- lliott
                          " "     """
mde_at_MicahElliott.com            <><             http://MicahElliott.com
PGP: 0x7C07CBF0          ICQ: 369060435      Linux/Ubuntu: 417195/12440
HackerKey: v4sw6YUPCJhw5ln5pr7OPck2ma9u8Lw3m5l6Ui2e7t3b8LDMOen6a3XsMRr5

Received on Fri Nov 2 18:22:22 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.