changeset 30980:60b5db2ab586

ui: give editor() a tag of its own We know that calls to ui.editor() always block on the user's configured editor. Use a blocking tag that ensures that we don't see a huge variety of editor options in our logging.
author Simon Farnsworth <simonfar@fb.com>
date Wed, 15 Feb 2017 13:38:00 -0800
parents fd598149112b
children a0c4e57074fe
files mercurial/ui.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Wed Feb 15 13:29:12 2017 -0800
+++ b/mercurial/ui.py	Wed Feb 15 13:38:00 2017 -0800
@@ -1139,7 +1139,8 @@
 
             self.system("%s \"%s\"" % (editor, name),
                         environ=environ,
-                        onerr=error.Abort, errprefix=_("edit failed"))
+                        onerr=error.Abort, errprefix=_("edit failed"),
+                        blockedtag='editor')
 
             f = open(name)
             t = f.read()