Patchwork [4,of,7] bisect: set a blockedtag when running the check command

login
register
mail settings
Submitter Simon Farnsworth
Date March 6, 2017, 11:28 a.m.
Message ID <58598f53624156fc16d1.1488799685@devvm022.lla2.facebook.com>
Download mbox | patch
Permalink /patch/18936/
State Accepted
Headers show

Comments

Simon Farnsworth - March 6, 2017, 11:28 a.m.
# HG changeset patch
# User Simon Farnsworth <simonfar@fb.com>
# Date 1488799590 28800
#      Mon Mar 06 03:26:30 2017 -0800
# Node ID 58598f53624156fc16d17d3223574bf4517d1bcf
# Parent  6cb267dc6b8156333413b6bbadc819807d73241c
bisect: set a blockedtag when running the check command

So that the hg bisect data clearly shows the bisect command separately to the
main data set.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -886,7 +886,8 @@ 
                 # update state
                 state['current'] = [node]
                 hbisect.save_state(repo, state)
-                status = ui.system(command, environ={'HG_NODE': hex(node)})
+                status = ui.system(command, environ={'HG_NODE': hex(node)},
+                                   blockedtag='bisect_check')
                 if status == 125:
                     transition = "skip"
                 elif status == 0: