Would the Working Copy Root Path
from the svn info
command provide what you need?
D:> svn info
Path: .
Working Copy Root Path: D:\workdir\local-tc-common-all
URL: svn://localhost/trunk/tc-common-all/src/main/bin
Repository Root: svn://localhost
Repository UUID: 4f1d1789-e46b-c140-9c77-f79c92213374
Revision: 61
Node Kind: directory
Schedule: normal
Last Changed Author: dweintraub
Last Changed Rev: 3
Last Changed Date: 2012-07-19 12:09:24 -0400 (Thu, 19 Jul 2012)
This gives you the root of the current checkout which seems to be what you're looking for. You can use the --xml
switch which sometimes makes it easier to get programmatically since most programming languages are pretty good at parsing XML.
If you're looking for the root of the repository itself separate from the URL scheme, you could get that by taking the Repository Root out of the URL field.
svn info
don't returns "Working Copy Root Path". What is the version of the subversion? My version is 1.6.18 (r1303927) – Levee