diff mercurial/hbisect.py @ 14215:e5a59d31bb04

hbisect: use real Booleans instead of 0/1
author Martin Geisler <mg@aragost.com>
date Fri, 06 May 2011 10:02:46 +0200
parents a4fbbe0fbc38
children 01e0091679c0
line wrap: on
line diff
--- 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