[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: Doyle, Patrick <WPD_at_dtccom.com>
Date: 2005-11-30 22:04:21 CET

> 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%
>
> and
>
> svn st filename.txt
> echo %ERRORLEVEL%
>
> but ERRORLEVEL is always 0, regardless if the file is
> under Subversions control.
>
> My overall goal is to have a batch file make copies of
> unversioned-files to another directory.
>
I haven't looked at the Python bindings for Subversion, but why not write a
Python script instead of a batch file? (One reason might be because you
don't know how to program in Python, but Python was designed to be easy to
learn, so don't be afraid of it).

--wpd

Patrick Doyle
Manager, Digital Systems Group
(603) 546-2179

 

This communication is from DTC Communications, Inc. and is intended to be
confidential and solely for the use of the persons or entities addressed
above. If you are not an intended recipient, be aware that the information
contained herein may be protected from unauthorized use by privilege or law,
and any copying, distribution, disclosure, or other use of this information
is prohibited. If you have received this communication in error, please
contact the sender by return e-mail or telephone the above number
immediately and delete or destroy all copies. Thank you for your
cooperation.

---------------------------------------------------------------------
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:12:31 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.