mercurial/hbisect.py
changeset 35128 fd8b6b183073
parent 30389 e124e83fd159
child 35129 ec25c8275cfa
--- a/mercurial/hbisect.py	Wed Nov 22 19:24:22 2017 -0800
+++ b/mercurial/hbisect.py	Thu Nov 23 14:11:27 2017 -0800
@@ -21,7 +21,7 @@
     error,
 )
 
-def bisect(changelog, state):
+def bisect(repo, state):
     """find the next node (if any) for testing during a bisect search.
     returns a (nodes, number, good) tuple.
 
@@ -32,6 +32,7 @@
     if searching for a first bad one.
     """
 
+    changelog = repo.changelog
     clparents = changelog.parentrevs
     skip = set([changelog.rev(n) for n in state['skip']])