diff -r 3a8cf5b9c820 -r 67a2ecea8bd9 mercurial/formatter.py --- a/mercurial/formatter.py Mon Mar 15 16:55:03 2021 +0100 +++ b/mercurial/formatter.py Mon Mar 15 17:09:42 2021 +0100 @@ -178,6 +178,11 @@ class baseformatter(object): + + # set to True if the formater output a strict format that does not support + # arbitrary output in the stream. + strict_format = False + def __init__(self, ui, topic, opts, converter): self._ui = ui self._topic = topic @@ -418,6 +423,9 @@ class jsonformatter(baseformatter): + + strict_format = True + def __init__(self, ui, out, topic, opts): baseformatter.__init__(self, ui, topic, opts, _nullconverter) self._out = out