Patchwork D3052: bisect: avoid repo.lookup() for converting revnum to nodeid

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 11:25 p.m.
Message ID <17ad03ee20a3630c94a65375ba14e101@localhost.localdomain>
Download mbox | patch
Permalink /patch/30227/
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 rHGe47bd4c71c5e: bisect: 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/D3052?vs=7583&id=7592

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -805,7 +805,7 @@ 
     # update state
     if good or bad or skip:
         if rev:
-            nodes = [repo.lookup(i) for i in scmutil.revrange(repo, [rev])]
+            nodes = [repo[i].node() for i in scmutil.revrange(repo, [rev])]
         else:
             nodes = [repo.lookup('.')]
         if good: