D7332: index: use `index.get_rev` in `phases.newheads`

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


Closed by commit rHGd294f0baf549: index: use `index.get_rev` in `phases.newheads` (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/D7332?vs=17755&id=17893

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

REVISION DETAIL
  https://phab.mercurial-scm.org/D7332

AFFECTED FILES
  mercurial/phases.py

CHANGE DETAILS

diff --git a/mercurial/phases.py b/mercurial/phases.py
--- a/mercurial/phases.py
+++ b/mercurial/phases.py
@@ -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]:



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


More information about the Mercurial-devel mailing list