# HG changeset patch # User Simon Farnsworth # Date 1487194680 28800 # Node ID 60b5db2ab586db2ba778bfd68438fccf8085511c # Parent fd598149112b4dec7649f601e6feec80ea7a27a6 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. diff -r fd598149112b -r 60b5db2ab586 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()