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

Re: How to figure out the top URL of the repository from a path?

From: Dirk Hoffmann <dh.discuss_at_web.de>
Date: 2004-09-03 09:14:38 CEST

Zsolt Koppany wrote:

>I would like to figure out the URL of a the repository from a path. For
>example if the user enters http://localhost/svn/dir1/dir2/dir3 how can I
>figure out the real URL of the repository (NOT including module paths)?
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org

I had the same problem but with the javahl-API.

The libsvn_ra-C-API has a function called get_repos_root() which
provides what you need. I extended the javahl-interface with a java
equivalent of this function.

As far as I know there is nothing in the command-line-client to get the
repository's root url. Maybe its worth to extend the cl-client. It
shouldn't be that difficult.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 3 09:15:15 2004

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.