# HG changeset patch # User Pierre-Yves David # Date 2019-11-09 12:23:54 # Node ID 43e722fc2909bc7718393dab71b867129d0a2696 # Parent 418ca164d44c3f8f7bf8057270ca42e69cc93a45 index: use `index.get_rev` in `histedit.processreplacement` Differential Revision: https://phab.mercurial-scm.org/D7354 diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -2517,9 +2517,9 @@ def processreplacement(state): del final[n] # we expect all changes involved in final to exist in the repo # turn `final` into list (topologically sorted) - nm = state.repo.changelog.nodemap + get_rev = state.repo.changelog.index.get_rev for prec, succs in final.items(): - final[prec] = sorted(succs, key=nm.get) + final[prec] = sorted(succs, key=get_rev) # computed topmost element (necessary for bookmark) if new: