mercurial/commands.py
changeset 9689 57cee011ffcb
parent 9687 c6da1cb3b255
child 9698 3bbc6bc62809
--- 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