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

Simon Farnsworth simonfar at fb.com
Mon Mar 6 06:28:06 EST 2017


# HG changeset patch
# User Simon Farnsworth <simonfar at 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

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)


More information about the Mercurial-devel mailing list