index: use `index.get_rev` in `phases.newheads`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 09 Nov 2019 13:23:52 +0100
changeset 43556 505a2bc53759
parent 43555 ded3d545b6f0
child 43557 acaff50079ff
index: use `index.get_rev` in `phases.newheads` Differential Revision: https://phab.mercurial-scm.org/D7332
mercurial/phases.py
--- a/mercurial/phases.py	Sat Nov 09 13:23:51 2019 +0100
+++ b/mercurial/phases.py	Sat Nov 09 13:23:52 2019 +0100
@@ -733,7 +733,7 @@
 
     repo = repo.unfiltered()
     cl = repo.changelog
-    rev = cl.nodemap.get
+    rev = cl.index.get_rev
     if not roots:
         return heads
     if not heads or heads == [nullid]: