# HG changeset patch # User Martin von Zweigbergk # Date 1522650591 25200 # Node ID 8474005fcfe28c32553d39bf1a4b880c1021dab4 # Parent 70c52800940bf7d198d3fd4a21a1933c60454da0 histedit: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3054 diff -r 70c52800940b -r 8474005fcfe2 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', '',