RFC: Command server protocol

Idan Kamara idankk86 at gmail.com
Tue Jun 21 08:09:11 CDT 2011


On Sun, Jun 12, 2011 at 7:15 PM, Idan Kamara <idankk86 at gmail.com> wrote:
> Here's an overview of the current protocol used by the command server
> [snip]
> When starting the server, it will send a new-line separated list of
> capabilities (on the 'o' channel), in this format:
> capabilities:\n
> capability1\n
> capability2\n
> ...
> At the most basic level, the server will support the 'runcommand'
> capability.
> [snip]

I think we may want the server to send something on the 'r'esult channel,
(like 'ready' or something), once it finished sending the hello message.

This way we can add more stuff to the hello message in the future
without breaking old clients. Clients will then treat everything on the 'o'
channel sent by the server from the moment it starts to the moment it
sends the 'ready' signal as the hello message.


More information about the Mercurial-devel mailing list