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

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

Comments

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




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

Patch

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]: