Mercurial > hg-stable
changeset 37314:8474005fcfe2
histedit: avoid repo.lookup() for converting revnum to nodeid
Differential Revision: https://phab.mercurial-scm.org/D3054
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 01 Apr 2018 23:29:51 -0700 |
parents | 70c52800940b |
children | 0a1fb171dc1d |
files | hgext/histedit.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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', '',