Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commandserver.py @ 40637:83dd8c63a0c6
ui: extract helpers to write message with type or label
This provides a 'type' attribute to command-server clients, which seems
more solid than relying on 'ui.<type>' labels. In future patches,
type='progress' will be added to send raw progress information.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 18 Jan 2015 17:55:28 +0900 |
parents | 054d0fcba2c4 |
children | 234c2d8c9e48 |
line wrap: on
line diff
--- a/mercurial/commandserver.py Sun Jan 18 18:49:59 2015 +0900 +++ b/mercurial/commandserver.py Sun Jan 18 17:55:28 2015 +0900 @@ -78,6 +78,9 @@ data length (unsigned int), encoded message and metadata, as a flat key-value dict. + + Each message should have 'type' attribute. Messages of unknown type + should be ignored. """ # teach ui that write() can take **opts