# HG changeset patch # User Boris Feld # Date 1524056712 -7200 # Node ID 04d648b53e3e2e82008f447384c0499b14a5318f # Parent a07fab68621f5e819a948d1a56f4a95329913c50 notify: access the initial revision on an unfiltered repository (issue5821) This should avoid crash when the first revision pushed end up being hidden. diff -r a07fab68621f -r 04d648b53e3e hgext/notify.py --- a/hgext/notify.py Wed Apr 18 15:04:12 2018 +0200 +++ b/hgext/notify.py Wed Apr 18 15:05:12 2018 +0200 @@ -455,7 +455,7 @@ changegroup. else send one email per changeset.''' n = notifier(ui, repo, hooktype) - ctx = repo[node] + ctx = repo.unfiltered()[node] if not n.subs: ui.debug('notify: no subscribers to repository %s\n' % n.root)