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

Re: Relative Externals - format debate

From: Brian W. Fitzpatrick <fitz_at_collab.net>
Date: 2005-01-04 04:27:13 CET

On Jan 3, 2005, at 11:47 AM, Max Bowsher wrote:

> I've looked over issue 1336.
> I think we can reasonably get relative externals working for 1.2, but,
> there is the question of how to format the relevant externals
> descriptions:
>
>
> There are potentially *four* different kinds of relative externals (!):
>
> 1. Directory-relative externals.
>
> Straightforward, a path like "../../foo/bar" should DTRT.

+1

> 2. Repository-relative externals.
>
> Conceptually straightforward (just use RA->get_repos_root()), but what
> syntax should they take? "/branches/foobar/mymodule"?
> But, should we also allow relative references to OTHER repositories?
>
> For example, currently in cvs2svn's repository, we have:
> "svntest
> http://svn.collab.net/repos/svn/trunk/subversion/tests/clients/
> cmdline/svntest"
>
> Should this be specifyable using something like
> "svntest
> reposroot:../svn/trunk/subversion/tests/clients/cmdline/svntest"
> ?
> 3. Host-relative externals.
>
> Simple in concept, but what syntax to represent?

I would prefer to handle both 2 & 3 together. For example,

   /foo/bar/baz.c

Would be used to compose an absolute URL by tacking the host and
repository access method onto the front of it. This wouldn't
discriminate between repositories on the same host, but instead merely
refer to a repository path that starts immediately after host:port/.

> 4. Scheme-relative externals.
>
> Consider a related grouping of repositories, maybe even on different
> hosts, which may be accessed either as http:// or https:// - but, if
> you are accessing one one way, you probably would rather use the same
> protocol for externals too.
>
> e.g. "myexternal httpsame://svn2.example.com/repos/beta/foo"

How about just dropping he repository access bit at the beginning? So
you'd have

   myexternal svn2.example.com/repos/beta/foo

-Fitz

  • application/pkcs7-signature attachment: smime.p7s
Received on Tue Jan 4 04:28:36 2005

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.