##// END OF EJS Templates
hbisect: pass repo into hbisect.bisect...
David Soria Parra -
r35126:fd8b6b18 default
parent child Browse files
Show More
@@ -854,7 +854,7 b' def bisect(ui, repo, rev=None, extra=Non'
854 ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition))
854 ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition))
855 hbisect.checkstate(state)
855 hbisect.checkstate(state)
856 # bisect
856 # bisect
857 nodes, changesets, bgood = hbisect.bisect(repo.changelog, state)
857 nodes, changesets, bgood = hbisect.bisect(repo, state)
858 # update to next check
858 # update to next check
859 node = nodes[0]
859 node = nodes[0]
860 mayupdate(repo, node, show_stats=False)
860 mayupdate(repo, node, show_stats=False)
@@ -867,7 +867,7 b' def bisect(ui, repo, rev=None, extra=Non'
867 hbisect.checkstate(state)
867 hbisect.checkstate(state)
868
868
869 # actually bisect
869 # actually bisect
870 nodes, changesets, good = hbisect.bisect(repo.changelog, state)
870 nodes, changesets, good = hbisect.bisect(repo, state)
871 if extend:
871 if extend:
872 if not changesets:
872 if not changesets:
873 extendnode = hbisect.extendrange(repo, state, nodes, good)
873 extendnode = hbisect.extendrange(repo, state, nodes, good)
@@ -21,7 +21,7 b' from . import ('
21 error,
21 error,
22 )
22 )
23
23
24 def bisect(changelog, state):
24 def bisect(repo, state):
25 """find the next node (if any) for testing during a bisect search.
25 """find the next node (if any) for testing during a bisect search.
26 returns a (nodes, number, good) tuple.
26 returns a (nodes, number, good) tuple.
27
27
@@ -32,6 +32,7 b' def bisect(changelog, state):'
32 if searching for a first bad one.
32 if searching for a first bad one.
33 """
33 """
34
34
35 changelog = repo.changelog
35 clparents = changelog.parentrevs
36 clparents = changelog.parentrevs
36 skip = set([changelog.rev(n) for n in state['skip']])
37 skip = set([changelog.rev(n) for n in state['skip']])
37
38
General Comments 0
You need to be logged in to leave comments. Login now