D3054: histedit: avoid repo.lookup() for converting revnum to nodeid

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Apr 3 19:25:13 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8474005fcfe2: histedit: avoid repo.lookup() for converting revnum to nodeid (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3054?vs=7585&id=7594

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

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
@@ -916,7 +916,7 @@
         msg = _('there are ambiguous outgoing revisions')
         hint = _("see 'hg help histedit' for more detail")
         raise error.Abort(msg, hint=hint)
-    return repo.lookup(roots[0])
+    return repo[roots[0]].node()
 
 @command('histedit',
     [('', 'commands', '',



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


More information about the Mercurial-devel mailing list