monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] monotone automate stdio (update)


From: Timothy Brownawell
Subject: [Monotone-devel] monotone automate stdio (update)
Date: Mon, 23 May 2005 18:12:41 -0500

Input for monotone automate stdio now has the format
'l'<length>':'<arg>[<length>':'<arg>...]'e'
, as there were problems mentioned with the previous format. Characters
between the 'e' for one command and the 'l' for the next are ignored
(except for 'l', of course).

Output now has the format
<cmdnum>':'<err>':'<last?>':'<size>':'<output>
, where cmdnum is incremented by 1 for each command (statring at 0), err
is 0 for success, 1 for a syntax error, or 2 for other errors, last? is
'l' if this is the last piece of output for this command or 'm' if there
is more, and size is the number of bytes in this piece of output. Output
is broken into pieces not more than 1024 bytes (arbitrarily chosen size)
each.

As mentioned this isn't a network protocol, so I didn't go with the
3-digit code for each line. Also, this format seems somewhat simpler
while still providing all needed information. It also works better with
binary output, which was mentioned as a possibility.

Tim






reply via email to

[Prev in Thread] Current Thread [Next in Thread]