D3052: bisect: avoid repo.lookup() for converting revnum to nodeid
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Apr 3 22:09:24 UTC 2018
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3052
AFFECTED FILES
mercurial/commands.py
CHANGE DETAILS
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:
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list