index: use `index.get_rev` in `obsolete._computephasedivergentset`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 09 Nov 2019 13:23:52 +0100
changeset 43606 1542773ffa5d
parent 43605 acaff50079ff
child 43607 90de6bcdf226
index: use `index.get_rev` in `obsolete._computephasedivergentset` Differential Revision: https://phab.mercurial-scm.org/D7336
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Sat Nov 09 13:23:52 2019 +0100
+++ b/mercurial/obsolete.py	Sat Nov 09 13:23:52 2019 +0100
@@ -980,7 +980,7 @@
     phase = repo._phasecache.phase  # would be faster to grab the full list
     public = phases.public
     cl = repo.changelog
-    torev = cl.nodemap.get
+    torev = cl.index.get_rev
     tonode = cl.node
     obsstore = repo.obsstore
     for rev in repo.revs(b'(not public()) and (not obsolete())'):