开发者

How to notify changes on a certain named branch on Mercurial?

开发者 https://www.devze.com 2022-12-10 20:43 出处:网络
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 becaus

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?


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号