[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] tortoiseproc.exe return code

From: SteveKing <steveking_at_gmx.ch>
Date: 2004-09-28 11:55:57 CEST

Jonathan Malek wrote:

> I had despaired of receiving any response, and had already looked
> through source. I noted the default message loop issue.
>
> You mention that TSVN "is not supposed to be used in a batch file...",
> but the docs say "Since all commands for TortoiseSVN are controlled
> through command line parameters, you can automate it with batch
> scripts or start specific commands and dialogs from other programs
> (e.g. your favourite text editor)." (That's from Appendix B,
> "Automating TortoiseSVN").

I know that. And you _can_ use TSVN from a batch file, it just doesn't
provide the correct return codes.
And as I said: TSVN was never designed to be used from a batch file or
any other program. But then people kept asking about that because they
wanted to use TSVN from their favourite text editor or IDE. So I
documented the command line switches which are needed to do that. And
for running TSVN from an IDE this works well enough - after all, the
reason for using TSVN instead of the command line client is to have a
nice UI. The return codes don't matter in such situations, because the
errors are shown in dialogs. That's also why you shouldn't use TSVN from
a batch file: if an error occurs, TSVN will show an error dialog and
wait for the user to click "OK" - that's not what you really want when
you're using a batch file, but it's what you want when you're calling
TSVN from an IDE.

> There's no way around this? A console shim, nothing? Thanks again
> for taking the time to respond.

I don't know if there's a way around this. Sure, I could try and rewrite
TSVN to return the correct error codes and even add another switch which
will prevent any error dialogs to pop up. But where would that end? I
mean someone could even ask for e.g. the commit dialog not showing up
but to commit directly.
So, I have to say no to this. If you want to use return codes, you must
use the command line client - that's what it's there for.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Sep 28 13:06:10 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.