[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-27 17:56:50 CEST

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
Received on Mon Sep 27 19:07:24 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.