How do I determine if a directory is part of a Subversion working copy?
Just run svn status
. You'll get a message like the following if the it's not a working copy:
svn: warning: '.' is not a working copy
Edit: If you are concerned about the recursive nature of svn status
you can limit the depth by (depending on the version of the client) either
svn status --depth=empty
or
svn status --non-recusive
(The latter format is listed as obsolete in recent versions of the client).
You can use the svn info property and then pipe to just get the url as follows:
svn info -R | FIND "URL:" >urlText
then load this output into another variable and you could work with it like:
set /p urlRepo= <urlText
del urlText