diff mercurial/commands.py @ 31201:50d76bae15cf

config: set blockedtag when invoking configuration edit
author Simon Farnsworth <simonfar@fb.com>
date Mon, 06 Mar 2017 03:27:24 -0800
parents 426b3d1e82d0
children f59b6cf663a9
line wrap: on
line diff
--- 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)