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

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 11:25 p.m.
Message ID <9d00baaae7e1f72c1ede5ec57be75d6f@localhost.localdomain>
Download mbox | patch
Permalink /patch/30226/
State Not Applicable
Headers show

Comments

phabricator - April 3, 2018, 11:25 p.m.
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




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

Patch

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', '',