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

mod_dav_svn: how to Determine the Connection's Base URL

From: Shlomi Fish <shlomif_at_iglu.org.il>
Date: 2004-04-22 16:40:48 CEST

Hi all!

I'm working on the get_locations() handler, with the protocol as settled by
cmpilato and I. Now the protocol specifies that we pass a URL along with a
peg revision and some location revisions, and in return receive a hash that
maps the revisions to their URLs. URLs were used because these may out of the
part of the repository that is mapped by the working copy.

Now, in ra_dav/mod_dav_svn we decided to transmit these URLs over the wire.
However, in mod_dav_svn, I need to determine what is the repository root's
URL, to determine what are the pathes relative to the physical repository
(and whether they actually belong there), and to transmit the resultant URLs
back on the wire. Something like the ra_plugin_t get_repos_root() handler,
only on the server side.

How do I do that?

Note that one potential problem is that the repository's URL can vary from
connection to connection for the same HTTP-mapped repository. For example it
can be:

http://localhost/svn/repos/

or:

http://myhost.mydomain.org/svn/repos/

Regards,

        Shlomi Fish

---------------------------------------------------------------------
Shlomi Fish shlomif@iglu.org.il
Homepage: http://shlomif.il.eu.org/

Quidquid latine dictum sit, altum viditur.
        [Whatever is said in Latin sounds profound.]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 22 16:35:51 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.