diff -r d62d597b8974 -r e5a59d31bb04 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