Patchwork [5,of,7] config: set blockedtag when invoking configuration edit

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

Comments

Simon Farnsworth - March 6, 2017, 11:28 a.m.
# HG changeset patch
# User Simon Farnsworth <simonfar@fb.com>
# Date 1488799644 28800
#      Mon Mar 06 03:27:24 2017 -0800
# Node ID fe95476c568b895441a14bfb2c83c6848705cd5e
# Parent  58598f53624156fc16d17d3223574bf4517d1bcf
config: set blockedtag when invoking configuration edit

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1795,7 +1795,8 @@ 
 
         editor = ui.geteditor()
         ui.system("%s \"%s\"" % (editor, f),
-                  onerr=error.Abort, errprefix=_("edit failed"))
+                  onerr=error.Abort, errprefix=_("edit failed"),
+                  blockedtag='config_edit')
         return
     ui.pager('config')
     fm = ui.formatter('config', opts)