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

Return value of "svn info"

From: Jake Stone <jake.the.stone_at_gmail.com>
Date: Thu, 22 Oct 2009 17:14:13 -0500

Hello,

I am writing a quick batch script to perform actions on several &
arbitrary SVN working copies. One complication is that there are folders
in the target directory that are unrelated - not SVN checkouts. One way
I've found of checking to see if a given folder is an SVN working copy
is to run "svn info %folder%" on it. So far, "svn info" returns 0 (or in
Windows, sets %ERRORLEVEL% to 0) if the working copy exists, or 1 if the
folder is not a working copy.

My question is: would "svn info" ever return a non-zero value on an SVN
working copy, for any reason? If so, this would break my script.
Also: is there a simple way to check if a folder is a SVN working copy?

Thanks!

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2410455

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-23 00:15:10 CEST

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.