monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] monotone automate stdio


From: Timothy Brownawell
Subject: Re: [Monotone-devel] monotone automate stdio
Date: Sat, 21 May 2005 13:21:55 -0500

On 5/20/05, Nathaniel Smith <address@hidden> wrote:
> On Fri, May 20, 2005 at 10:36:32AM -0500, Timothy Brownawell wrote:
> > How about a series of <length> colon <string> items, like we were
> > thinking for the output?
> > 7:parents40:0123456789abcdef0123456789abcdef01234567
> 
> Hmm, re-read my original mail ;-):

Oops :)

>  > Maybe make the format the constant "l", then a bunch
>  > of <decimal length><constant ":"><that many characters> argument
>  > strings, then the constant "e" to mark the end of the list.
>  > Semi-arbitrary, but happens to be the same as bencoding :-).
> 
> Your proposal lacks a way to tell where the beginning and end of a
> command fall (remember that a bunch of these are being sent to stdin
> sequentially).  So, I suggested, stick a constant "l" at the beginning
> (for "list", in bencoding), and a constant "e" at the end (for "end").
> Seems as good as anything else.

I had been thinking newline ('\n') at the end of each command, but
that works too.

Tim




reply via email to

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