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

Re: Can svn commands set DOS ERRORLEVEL?

From: Darko Miletic <darko_at_uvcms.com>
Date: 2005-11-30 22:37:17 CET

x nooby wrote:
> I was looking for a way to test if a file was under
> Subversion's control, and have that test set the DOS
> ERRORLEVEL. I was trying these commands:
>
> svn info filename.txt
> echo %ERRORLEVEL%

The problem with subversion client is that it does not return error
code. You only have two codes returned. If operation was performed
without errors you will get 0, otherwise you will get 1.

BTW I was using %errorlevel% in my scripts and it was working fine.

Darko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 30 22:43:50 2005

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

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