views:

65

answers:

2

I am aware of Notify extension by Mercurial, but it always notify on any push action. What I want is that a notification only when a certain branch (say, "stable") is updated because I need others to take action when this happens.

What's the easiest way to achieve this functionality?

+4  A: 

I think the simplest thing would be to extend the notify extension to do that (and add a new configuration choice). It should be quite simple (the hardest is to find the right ui so that we can add it upstream).

tonfa
Is it really that simple? I'll try to look into it when I have time.
Leonth
Don't hesitate to ask on the mailing list, on IRC, or here if you have some questions.
tonfa
+1  A: 

It's not a great workaround, but you could very easily write a hook that moves only changesets on stable over to a separate clone called (for example) email-trigger, and then have notify turned on there.

Or, have the emails go to an internal mailing list and set the spam filter on that list to throw away any emls without branch: stable in them, which will filter them away before the users see them.

Ry4an
Or alternatively, only forward emails containing the string "branch:stable". Should be doable with gmail filters :)
Leonth
Yeah, absolutely doable with gmail.
Ry4an