Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/configitems.py @ 40594:840cd57cde32
ui: add config knob to redirect status messages to stderr (API)
This option can be used to isolate structured output from status messages.
For now, "stdio" (stdout/err pair) and "stderr" are supported. In future
patches, I'll add the "channel" option which will send status messages to
a separate command-server channel with some metadata attached, maybe in
CBOR encoding.
This is a part of the generic templating plan:
https://www.mercurial-scm.org/wiki/GenericTemplatingPlan#Sanity_check_output
.. api::
Status messages may be sent to a dedicated stream depending on
configuration. Don't use ``ui.status()``, etc. as a shorthand for
conditional writes. Use ``ui.write()`` for data output.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 03 Nov 2018 19:42:50 +0900 |
parents | 86dfae98a3a2 |
children | 054d0fcba2c4 |
comparison
equal
deleted
inserted
replaced
40593:7bffbbe03e90 | 40594:840cd57cde32 |
---|---|
1179 'ifeq(tags, "", "", "{tags} "))}' | 1179 'ifeq(tags, "", "", "{tags} "))}' |
1180 '{if(bookmarks, "{bookmarks} ")}' | 1180 '{if(bookmarks, "{bookmarks} ")}' |
1181 '{ifeq(branch, "default", "", "{branch} ")}' | 1181 '{ifeq(branch, "default", "", "{branch} ")}' |
1182 '- {author|user}: {desc|firstline}') | 1182 '- {author|user}: {desc|firstline}') |
1183 ) | 1183 ) |
1184 coreconfigitem('ui', 'message-output', | |
1185 default='stdio', | |
1186 ) | |
1184 coreconfigitem('ui', 'nontty', | 1187 coreconfigitem('ui', 'nontty', |
1185 default=False, | 1188 default=False, |
1186 ) | 1189 ) |
1187 coreconfigitem('ui', 'origbackuppath', | 1190 coreconfigitem('ui', 'origbackuppath', |
1188 default=None, | 1191 default=None, |