# HG changeset patch # User Boris Feld # Date 1524056826 -7200 # Node ID 68748c2c761bf6e94c0c683fff32bd551f27a1b3 # Parent 04d648b53e3e2e82008f447384c0499b14a5318f notify: only notify for non-filtered revision This should fix issue5821 for hook targeting individual revision. diff -r 04d648b53e3e -r 68748c2c761b 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') %