notify: only notify for non-filtered revision stable
authorBoris Feld <boris.feld@octobus.net>
Wed, 18 Apr 2018 15:07:06 +0200
branchstable
changeset 37795 68748c2c761b
parent 37794 04d648b53e3e
child 37796 968ac00c4017
notify: only notify for non-filtered revision This should fix issue5821 for hook targeting individual revision.
hgext/notify.py
--- a/hgext/notify.py	Wed Apr 18 15:05:12 2018 +0200
+++ b/hgext/notify.py	Wed Apr 18 15:07:06 2018 +0200
@@ -481,7 +481,7 @@
                 ui.pushbuffer()
         if count:
             n.diff(ctx, repo['tip'])
-    else:
+    elif ctx.rev() in repo:
         if not n.node(ctx):
             ui.popbuffer()
             ui.note(_('notify: suppressing notification for merge %d:%s\n') %