D7354: index: use `index.get_rev` in `histedit.processreplacement`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Nov 9 11:00:24 EST 2019


Closed by commit rHG34b38e09d084: index: use `index.get_rev` in `histedit.processreplacement` (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/D7354?vs=17855&id=17906

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

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

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -2517,9 +2517,9 @@
         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:



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


More information about the Mercurial-devel mailing list