ui: give editor() a tag of its own
authorSimon Farnsworth <simonfar@fb.com>
Wed, 15 Feb 2017 13:38:00 -0800
changeset 30980 60b5db2ab586
parent 30979 fd598149112b
child 30981 a0c4e57074fe
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.
mercurial/ui.py
--- 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()