--- a/mercurial/commands.py Sun Nov 01 02:57:11 2009 +0100
+++ b/mercurial/commands.py Sun Nov 01 03:26:10 2009 +0100
@@ -370,14 +370,14 @@
# update state
node = repo.lookup(rev or '.')
- if good:
- state['good'].append(node)
- elif bad:
- state['bad'].append(node)
- elif skip:
- state['skip'].append(node)
-
- hbisect.save_state(repo, state)
+ if good or bad or skip:
+ if good:
+ state['good'].append(node)
+ elif bad:
+ state['bad'].append(node)
+ elif skip:
+ state['skip'].append(node)
+ hbisect.save_state(repo, state)
if not check_state(state):
return