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

Re: Unclear syntax for relative addressing of svn:externals, on RHEL 5, subversion-1.6.12

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Mon, 12 Jul 2010 07:42:13 -0400

On Fri, Jul 9, 2010 at 6:45 PM, Ryan Schmidt
<subversion-2010b_at_ryandesign.com> wrote:
> On Jul 9, 2010, at 17:13, Nico Kadel-Garcia wrote:
>> On Fri, Jul 9, 2010 at 4:19 PM, Ryan Schmidt wrote:
>>> On Jul 9, 2010, at 14:08, Nico Kadel-Garcia wrote:

>> What I wanted to do was have Subversion check out directories from
>> within the same repository, rooted to the top of the repository, so
>> that moving a tag or branch up or down wouldn't break the references.
>> I'd thought from the documentation about 'relative references' that it
>> would apply to the URL of the external repository, so that if the repo
>> is checked out as file:///, https:///, svn:///, etc. the URL's for
>> svn:externals downloading would be auto-munged appropriately.
>>
>> Is this not available?
>
> Yes, it is possible, using the syntax I provided.

Thanks, Ryan, I've checked it myself. Do others agree that the
documentation in the book and the documentation in the "svn help
propset" is also unclear about the order of the arguments? It seems
very strange indeed to me tha the arguments for relative addressing
are reversed from the arguments URL's for separate repositories.

>
> On the book page you referred to, scroll down to the part that reads "As of Subversion 1.5, though, a new format of the svn:externals property is supported." The old externals syntax, which does not support what you want, had the format "localdir url". The new format, that does support what you want, has the format "url localdir" (the parameters are reversed from before). I know this works because I use it in my repository here:

But the old format still works. Are both supported? Because if it is,
I've got to say, that's just nasty and confusing.

> http://code.google.com/p/canviz/source/checkout
>
> You can check out a working copy and see it work for yourself, or see:
>
> $ svn propget svn:externals http://canviz.googlecode.com/svn/canviz/trunk
> ^/vendor/excanvas/0001_at_7 excanvas
> ^/path/trunk/libs_at_262 path
> ^/vendor/prototype/1.6.0.3/dist_at_135 prototype
Received on 2010-07-12 13:42:56 CEST

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.