histedit: avoid repo.lookup() for converting revnum to nodeid
authorMartin von Zweigbergk <martinvonz@google.com>
Sun, 01 Apr 2018 23:29:51 -0700
changeset 37314 8474005fcfe2
parent 37313 70c52800940b
child 37315 0a1fb171dc1d
histedit: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3054
hgext/histedit.py
--- a/hgext/histedit.py	Sun Apr 01 23:27:50 2018 -0700
+++ b/hgext/histedit.py	Sun Apr 01 23:29:51 2018 -0700
@@ -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', '',