diff --git a/mercurial/commands.py b/mercurial/commands.py
index 46e9ed223d2c8d1fc1b1b64c7f2dab795f5d690d_bWVyY3VyaWFsL2NvbW1hbmRzLnB5..e462313ef1bd5a4aff601c4637580371553176ba_bWVyY3VyaWFsL2NvbW1hbmRzLnB5 100644
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -647,6 +647,7 @@
         try:
             while changesets:
                 # update state
+                hbisect.save_state(repo, state)
                 status = util.system(command, out=ui.fout)
                 if status == 125:
                     transition = "skip"