[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: Jonathan Malek <jonathan.malek_at_gmail.com>
Date: 2004-09-27 22:31:51 CEST

Stefan,

Thanks for responding.

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").

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

On Mon, 27 Sep 2004 17:56:50 +0200, SteveKing <steveking@gmx.ch> wrote:
>
>
> Jonathan Malek wrote:
> > I posted this on the users discussion forum a bit ago, and got no
> > response. I am using tortoiseproc.exe in a NAnt <exec> task, and
> > apparently it is returning an error code of 1, rather than 0, on
> > successful termination.
> >
> > Example:
> > place the following in test.cmd:
> > "c:\Program Files\TortoiseSVN\TortoiseProc.exe" /command:update
> > /path:. /notempfile /closeonend
> > echo %ERRORLEVEL%
> >
> > execute test in a controlled directory. The return value
> > will be 1. It should be 0.
> >
> > Is this expected? Am I doing something wrong? For now, my workaround
> > is to add a failonerror attribute to the exec task, and ignore the
> > result--not a good long term solution.
>
> TortoiseSVN does not provide return codes at all. It's not a command
> line client and is not supposed to be used in a batch file or something
> like that.
> The way TSVN is built, it will _always_ return an "error" because once a
> command is finished, it has to return FALSE to make MFC _not_ start the
> default message loop - there just isn't a main window around but many,
> many different dialogs.
>
> You should use the Subversion command line client for such tasks.
>
> 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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Sep 27 23:47:30 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.