How to send commit informations to a mailing-list ?

Benoit Boissinot bboissin at gmail.com
Wed Jun 7 03:24:26 CDT 2006


On 6/7/06, Xavier Maillard <maillaxa at gmail.com> wrote:
> 2006/6/7, David MENTRE <david.mentre at gmail.com>:
>
> > I filled a bug report :
> http://www.selenic.com/mercurial/bts/issue280
> >
The notify extension was not supposed to work for the commit hook.

Please try the attached patch and change your config to have:
[notify]
...
sources = serve push pull commit

regards,

Benoit
-------------- next part --------------
diff -r ffc3b2f1ab6a hgext/notify.py
--- a/hgext/notify.py	Mon Jun 05 16:48:24 2006 +0200
+++ b/hgext/notify.py	Wed Jun 07 10:15:24 2006 +0200
@@ -257,6 +257,9 @@ def hook(ui, repo, hooktype, node=None, 
     if not n.subs:
         ui.debug(_('notify: no subscribers to this repo\n'))
         return
+    # commit does not set the source type
+    if hooktype == "commit":
+        source = "commit"
     if n.skipsource(source):
         ui.debug(_('notify: changes have source "%s" - skipping\n') %
                   source)


More information about the Mercurial mailing list