changeset 37312:e47bd4c71c5e

bisect: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3052
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 01 Apr 2018 23:21:17 -0700
parents 2a8939e25d07
children 70c52800940b
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: