D3052: bisect: avoid repo.lookup() for converting revnum to nodeid
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Apr 3 19:25:27 EDT 2018
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
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, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list