D7335: index: use `index.get_rev` in `obsutil.getobsoleted`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Nov 8 16:25:16 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/D7335
AFFECTED FILES
mercurial/obsutil.py
CHANGE DETAILS
diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py
--- a/mercurial/obsutil.py
+++ b/mercurial/obsutil.py
@@ -478,7 +478,7 @@
def getobsoleted(repo, tr):
"""return the set of pre-existing revisions obsoleted by a transaction"""
- torev = repo.unfiltered().changelog.nodemap.get
+ torev = repo.unfiltered().changelog.index.get_rev
phase = repo._phasecache.phase
succsmarkers = repo.obsstore.successors.get
public = phases.public
To: marmoute, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list