Patchwork [2,of,7] patch: set a blockedtag when running an external filter

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

Comments

Simon Farnsworth - March 6, 2017, 11:28 a.m.
# HG changeset patch
# User Simon Farnsworth <simonfar@fb.com>
# Date 1488799529 28800
#      Mon Mar 06 03:25:29 2017 -0800
# Node ID 1c0e78f6c4db0c43799ee7d2fe68290c9f172849
# Parent  dc84da3efb972a86375c59fbb859bc31fc2d6335
patch: set a blockedtag when running an external filter

Patch

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -1064,7 +1064,8 @@ 
                     # Start the editor and wait for it to complete
                     editor = ui.geteditor()
                     ret = ui.system("%s \"%s\"" % (editor, patchfn),
-                                    environ={'HGUSER': ui.username()})
+                                    environ={'HGUSER': ui.username()},
+                                    blockedtag='filterpatch')
                     if ret != 0:
                         ui.warn(_("editor exited with exit code %d\n") % ret)
                         continue