monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] mtn automate stdio - change working directory


From: Thomas Moschny
Subject: Re: [Monotone-devel] mtn automate stdio - change working directory
Date: Tue, 23 May 2006 16:38:26 +0200
User-agent: KMail/1.9.1

On Tuesday 23 May 2006 14:40, rghetta wrote:
> AFAIK, you can intercept a WM_CLOSE in a console app by adding a CTRL-C
> handler (via SetConsoleCtrlHandler).

A 'close' command for the 'automate stdio' interface would imho be *much* 
cleaner and more portable.

BTW, how do I distinguish between transient and non-transient errors (e.g. 
database is locked)? Can I use the return codes of the automate stdio 
commands for that purpose, or do I have to parse the error message?

Additionally, sending the same command twice yields different error messages 
sometimes, e.g.
$ echo -n 'l6:leavesel6:leavese' | mtn automate stdio
0:2:l:39:error: sqlite error: database is locked1:2:l:64:error: wanted 1 
columns got 0 in query: SELECT id FROM revisions
Why is that?

- Thomas (M.)




reply via email to

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