# HG changeset patch # User Martin von Zweigbergk # Date 2018-04-02 06:21:17 # Node ID e47bd4c71c5e0b61a2a49bab9089fbdbd0e9f67b # Parent 2a8939e25d07558fd60b5ec693ce1960096092ec bisect: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3052 diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -805,7 +805,7 @@ def bisect(ui, repo, rev=None, extra=Non # 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: