Mercurial > public > mercurial-scm > hg-stable
diff hgext/notify.py @ 37795:68748c2c761b stable
notify: only notify for non-filtered revision
This should fix issue5821 for hook targeting individual revision.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 18 Apr 2018 15:07:06 +0200 |
parents | 04d648b53e3e |
children | d1134ca5b1a3 |
line wrap: on
line diff
--- 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') %