D7335: index: use `index.get_rev` in `obsutil.getobsoleted`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Nov 9 10:58:09 EST 2019


Closed by commit rHGb7eee04e60d6: index: use `index.get_rev` in `obsutil.getobsoleted` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7335?vs=17758&id=17894

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7335/new/

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, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list