D7341: index: use `index.get_rev` in `discovery._postprocessobsolete`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Nov 8 16:25:47 UTC 2019
marmoute created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7341
AFFECTED FILES
mercurial/discovery.py
CHANGE DETAILS
diff --git a/mercurial/discovery.py b/mercurial/discovery.py
--- a/mercurial/discovery.py
+++ b/mercurial/discovery.py
@@ -499,7 +499,7 @@
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
To: marmoute, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list