# HG changeset patch # User Pierre-Yves David # Date 2019-11-09 12:23:52 # Node ID d294f0baf5495df4737d319f75feba2f2ea6368f # Parent 8fabaf301882f03fdac7895455ebf216cc12c206 index: use `index.get_rev` in `phases.newheads` Differential Revision: https://phab.mercurial-scm.org/D7332 diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -733,7 +733,7 @@ def newheads(repo, heads, roots): 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]: