how to fetch the svnurl from working copy

View: New views
2 Messages — Rating Filter:   Alert me  

how to fetch the svnurl from working copy

by jamoraqui :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello, i have checked out my application from the remote svn repositery. is there anyway I can fetch the svnUrl of that repository from the local working copy?

Re: how to fetch the svnurl from working copy

by Alexander Sinyushkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Yes, you just need to use SVNWCClient.doInfo() on the path, which url
you would like to get, for example:

SVNClientManager clientManager = SVNClientManager.newInstance();

wcClient = clientManager.getWCClient();

SVNInfo info = wcClient.doInfo(new File("/path/to/wc"),
SVNRevision.WORKING);

System.out.println(info.getURL());

----
Alexander Sinyushkin,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

jamoraqui wrote:
> hello, i have checked out my application from the remote svn repositery. is
> there anyway I can fetch the svnUrl of that repository from the local
> working copy?