config: set blockedtag when invoking configuration edit
authorSimon Farnsworth <simonfar@fb.com>
Mon, 06 Mar 2017 03:27:24 -0800
changeset 31201 50d76bae15cf
parent 31200 426b3d1e82d0
child 31202 2db38ef73ce8
config: set blockedtag when invoking configuration edit
mercurial/commands.py
--- a/mercurial/commands.py	Mon Mar 06 03:26:30 2017 -0800
+++ b/mercurial/commands.py	Mon Mar 06 03:27:24 2017 -0800
@@ -1796,7 +1796,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)