bisect: avoid repo.lookup() for converting revnum to nodeid
authorMartin von Zweigbergk <martinvonz@google.com>
Sun, 01 Apr 2018 23:21:17 -0700
changeset 37312 e47bd4c71c5e
parent 37311 2a8939e25d07
child 37313 70c52800940b
bisect: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3052
mercurial/commands.py
--- a/mercurial/commands.py	Sun Apr 01 23:19:37 2018 -0700
+++ b/mercurial/commands.py	Sun Apr 01 23:21:17 2018 -0700
@@ -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: