monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Automate weirdness...


From: Thomas Keller
Subject: Re: [Monotone-devel] Automate weirdness...
Date: Wed, 01 Aug 2007 15:06:55 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

William Uther schrieb:
> % mtn au stdio l20:get_base_revision_ide 
> 0:0:l:41:aa05aa9171bac92766b769bbb703287f53e08693 
> l5:certs41:aa05aa9171bac92766b769bbb703287f53e08693 e 
> 1:2:l:85:misuse: hex encoded ID
> 'aa05aa9171bac92766b769bbb703287f53e08693
> 
> First I call "get_base_revision_id" to get the base revision.
> automate returns the revision to me with an extra linefeed (note that
> the 2nd line has a 41 rather than a 40 as the length of the returned
> id).  I then pass that straight into "certs", with the extra
> character, and get an error for giving automate an extra character.
> 
> This seems broken, but will require changes to the automate version
> to fix.  What's the normal procedure for something like this?

this is a general problem with many automate commands and goes back to
the problem of automate to be cmdline script compliant. if you would
call the automate command there and no newline would be appended, the
command prompt would start in the same line as the last line of the output.

to fix this properly we should strip off the extra \n for stdio usage in
general and only append it if the command is called outside of stdio.

thomas.

ps. sorry for doing everything lowercase, for some very stupid reason my
keyboard just gave up to interpret left and right shift keyboard strokes
- what a mess.

-- 
only dead fish swim with the stream: http://thomaskeller.biz/blog
Am Anfang war das Wort: http://www.schäuble-muss-weg.de




reply via email to

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