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

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 3:58 p.m.
Message ID <507fa034f7c0d1a7654588e91818429e@localhost.localdomain>
Download mbox | patch
Permalink /patch/43078/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 3:58 p.m.
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




To: marmoute, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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