# HG changeset patch # User Simon Farnsworth # Date 2017-03-06 11:27:24 # Node ID 50d76bae15cf727f207a95c7063906af7696f94c # Parent 426b3d1e82d0ad71855622b65b15eab821586d1e 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 @@ -1796,7 +1796,8 @@ def config(ui, repo, *values, **opts): 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)