[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: Andy Levy <andy.levy_at_gmail.com>
Date: 2005-11-30 22:15:46 CET

On 11/30/05, Doyle, Patrick <WPD@dtccom.com> 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%
> >
> > 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).

I quit using .bat files a couple years ago and switched to Windows
Script Host scripts (.vbs, .js). Can capture the output of programs
and parse it, more robust filesystem manipulation, etc. I'm writing
the few "management" scripts (backups, etc.) that I'll need for my svn
implementation using WSH.

---------------------------------------------------------------------
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:27:47 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.