[PATCH 1 of 2] bisect: save current state before running a command

Bryan O'Sullivan bos at serpentine.com
Wed May 2 19:20:12 CDT 2012


# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1336004111 25200
# Branch stable
# Node ID 09909f8f01279b8236ee5a4b1d6db8e6e9a81caf
# Parent  365a246d027bb04223f52cdeab9772aafab5d83e
bisect: save current state before running a command

This prevents an external command being run during a bisect from
querying stale data.

diff -r 365a246d027b -r 09909f8f0127 mercurial/commands.py
--- a/mercurial/commands.py	Wed May 02 16:37:10 2012 -0700
+++ b/mercurial/commands.py	Wed May 02 17:15:11 2012 -0700
@@ -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"


More information about the Mercurial-devel mailing list