# HG changeset patch # User Pierre-Yves David # Date 2019-11-09 12:23:53 # Node ID 65d6770273c81075a2ebf6787a0d7d1cd262f627 # Parent 90de6bcdf2264b64292793b87276549b32e710dc index: use `index.get_rev` in `discovery._postprocessobsolete` Differential Revision: https://phab.mercurial-scm.org/D7341 diff --git a/mercurial/discovery.py b/mercurial/discovery.py --- a/mercurial/discovery.py +++ b/mercurial/discovery.py @@ -499,7 +499,7 @@ def _postprocessobsolete(pushop, futurec repo = pushop.repo unfi = repo.unfiltered() tonode = unfi.changelog.node - torev = unfi.changelog.nodemap.get + torev = unfi.changelog.index.get_rev public = phases.public getphase = unfi._phasecache.phase ispublic = lambda r: getphase(unfi, r) == public