Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commandserver.py @ 45059:f43bc4ce0d69
cmdserver: document message-encodings and channel output options
While writing the previous patch, I noticed these options are undocumented.
In my testing, a separate status/error message channel works well in GUI
frontend as we no longer have to sort out data and message from mixed outputs.
So let's mark it as not experimental.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 28 Jun 2020 17:32:32 +0900 |
parents | d6e99a446eea |
children | d2e1dcd4490d |
line wrap: on
line diff
--- a/mercurial/commandserver.py Sat Jun 27 21:46:23 2020 +0900 +++ b/mercurial/commandserver.py Sun Jun 28 17:32:32 2020 +0900 @@ -191,7 +191,6 @@ def _selectmessageencoder(ui): - # experimental config: cmdserver.message-encodings encnames = ui.configlist(b'cmdserver', b'message-encodings') for n in encnames: f = _messageencoders.get(n) @@ -234,9 +233,6 @@ self.ui = self.ui.copy() setuplogging(self.ui, repo=None, fp=self.cdebug) - # TODO: add this to help/config.txt when stabilized - # ``channel`` - # Use separate channel for structured output. (Command-server only) self.cmsg = None if ui.config(b'ui', b'message-output') == b'channel': encname, encfn = _selectmessageencoder(ui)