comparison hgext/notify.py @ 37794:04d648b53e3e stable

notify: access the initial revision on an unfiltered repository (issue5821) This should avoid crash when the first revision pushed end up being hidden.
author Boris Feld <boris.feld@octobus.net>
date Wed, 18 Apr 2018 15:05:12 +0200
parents a07fab68621f
children 68748c2c761b
comparison
equal deleted inserted replaced
37793:a07fab68621f 37794:04d648b53e3e
453 453
454 if used as changegroup hook, send one email for all changesets in 454 if used as changegroup hook, send one email for all changesets in
455 changegroup. else send one email per changeset.''' 455 changegroup. else send one email per changeset.'''
456 456
457 n = notifier(ui, repo, hooktype) 457 n = notifier(ui, repo, hooktype)
458 ctx = repo[node] 458 ctx = repo.unfiltered()[node]
459 459
460 if not n.subs: 460 if not n.subs:
461 ui.debug('notify: no subscribers to repository %s\n' % n.root) 461 ui.debug('notify: no subscribers to repository %s\n' % n.root)
462 return 462 return
463 if n.skipsource(source): 463 if n.skipsource(source):