# HG changeset patch # User Simon Farnsworth # Date 2017-03-06 11:25:29 # Node ID 71a6723c002946b70866228d102f485772c61cb1 # Parent 764f4581d1f3518a3c00a3b190f5b7d40b5fbf2c patch: set a blockedtag when running an external filter diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -1064,7 +1064,8 @@ the hunk is left unchanged. # 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