comparison mercurial/commands.py @ 49466:a0b57cabc245

bisect: bypass changectx when translating revs to nodes When resolving the revset given by the user into node hashes, use the changelog to perform the translation rather than the repo object. This avoids the overhead of constructing a changectx which is immediately discarded.
author Arun Kulshreshtha <akulshreshtha@janestreet.com>
date Tue, 23 Aug 2022 17:31:13 -0400
parents b380583ad2f5
children 816236523765
comparison
equal deleted inserted replaced
49465:b07465adbcc8 49466:a0b57cabc245
1033 return 1033 return
1034 1034
1035 state = hbisect.load_state(repo) 1035 state = hbisect.load_state(repo)
1036 1036
1037 if rev: 1037 if rev:
1038 nodes = [repo[i].node() for i in logcmdutil.revrange(repo, rev)] 1038 nodes = [repo.changelog.node(i) for i in logcmdutil.revrange(repo, rev)]
1039 else: 1039 else:
1040 nodes = [repo.lookup(b'.')] 1040 nodes = [repo.lookup(b'.')]
1041 1041
1042 # update state 1042 # update state
1043 if good or bad or skip: 1043 if good or bad or skip: