changeset 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 d62d597b8974
children e3da95f84bcd
files mercurial/hbisect.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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