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

Re: Bug 1.6.0, Errorlevel not outputted correctly

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 28 Mar 2009 09:54:29 +0100

Jonathan Kay wrote:
> When using a batch file to update the repository, 1.6.0 is always outputting errorlevel 1, regardless if it was successful or not.
>
> The expected behavior is errorlevel 0 when successful and errorlevel 1 when failed.
>
> Quick batch file for testing:
> TortoiseProc.exe /command:update /path:"c:\svn\" /closeonend:1 /notempfile
>
> IF ERRORLEVEL=1 GOTO success
> IF ERRORLEVEL=0 GOTO failure

TSVN returns 0 on success (success means: no error returned from the svn
API), and -1 on failure.

Note: updating a non-existing path is not an error (for some reason, the
SVN API doesn't throw an error in that situation).

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1453564
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2009-03-28 09:54:54 CET

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

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