hbisect: use real Booleans instead of 0/1
authorMartin Geisler <mg@aragost.com>
Fri, 06 May 2011 10:02:46 +0200
changeset 14215 e5a59d31bb04
parent 14208 d62d597b8974
child 14216 e3da95f84bcd
hbisect: use real Booleans instead of 0/1
mercurial/hbisect.py
--- a/mercurial/hbisect.py	Thu May 05 18:05:24 2011 +0200
+++ b/mercurial/hbisect.py	Fri May 06 10:02:46 2011 +0200
@@ -54,10 +54,10 @@
             return badrev, None
         return badrev, ancestors
 
-    good = 0
+    good = False
     badrev, ancestors = buildancestors(state['bad'], state['good'])
     if not ancestors: # looking for bad to good transition?
-        good = 1
+        good = True
         badrev, ancestors = buildancestors(state['good'], state['bad'])
     bad = changelog.node(badrev)
     if not ancestors: # now we're confused