# HG changeset patch # User Boris Feld # Date 2018-04-18 13:07:06 # Node ID 68748c2c761bf6e94c0c683fff32bd551f27a1b3 # Parent 04d648b53e3e2e82008f447384c0499b14a5318f notify: only notify for non-filtered revision This should fix issue5821 for hook targeting individual revision. diff --git a/hgext/notify.py b/hgext/notify.py --- a/hgext/notify.py +++ b/hgext/notify.py @@ -481,7 +481,7 @@ def hook(ui, repo, hooktype, node=None, 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') %