##// END OF EJS Templates
hbisect: use real Booleans instead of 0/1
Martin Geisler -
r14215:e5a59d31 default
parent child Browse files
Show More
@@ -54,10 +54,10 b' def bisect(changelog, state):'
54 return badrev, None
54 return badrev, None
55 return badrev, ancestors
55 return badrev, ancestors
56
56
57 good = 0
57 good = False
58 badrev, ancestors = buildancestors(state['bad'], state['good'])
58 badrev, ancestors = buildancestors(state['bad'], state['good'])
59 if not ancestors: # looking for bad to good transition?
59 if not ancestors: # looking for bad to good transition?
60 good = 1
60 good = True
61 badrev, ancestors = buildancestors(state['good'], state['bad'])
61 badrev, ancestors = buildancestors(state['good'], state['bad'])
62 bad = changelog.node(badrev)
62 bad = changelog.node(badrev)
63 if not ancestors: # now we're confused
63 if not ancestors: # now we're confused
General Comments 0
You need to be logged in to leave comments. Login now