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

RE: svn:externals ../ in local path

From: Dimitri Yanculovici <dimitri.yanculovici_at_orange-ftgroup.com>
Date: Fri, 6 Feb 2009 09:28:46 +0100

Hi Blair,

Thanks for your answer.

Here is what I want to do:

My repository tree structure is:

<repository>
        |- components/
        | |- component1/
        | |- component2/
        | `- component3/
        `- platforms/
                `- platform1/ <- svn:externals

"platform1" refers to "component1",2,3 thus what I need after a checkout of
"platform1" is:

<local_current_dir>
        |- component1/
        |- component2/
        |- component3/
        `- platform1/

So the only way (that I've found) to automate this (excluding the individual
checkout of the 3 components and the platform) would be to add svn:externals
properties on the "platform1/" directory as follow:

../component1/ http://repository_url/components/component1/
../component2/ http://repository_url/components/component2/
../component3/ http://repository_url/components/component3/

But ../component1/ is not supported...

If I put the svn:externals on the parent directory (here it's "platforms/").
I can obtain the following tree structure after a checkout of "platforms/":

<local_current_dir>
        `- platforms/
                |- component1/
                |- component2/
                |- component3/
                `- platform1/

But it's not what I want to do. I really need to force the checkout of the
three components during the checkout of platform1 and not platforms.

You may think that it's the design of my repository's tree structure which
is not adapted, but I have other constraints which force me to build it like
that...

Dimitri.

-----Message d'origine-----
De : Blair Zajac [mailto:blair_at_orcaware.com]
Envoyé : jeudi 5 février 2009 20:43
À : Dimitri Yanculovici
Cc : dev_at_subversion.tigris.org
Objet : Re: svn:externals ../ in local path

Dimitri Yanculovici wrote:
> Hi,
>
> I would like to know if the “../” in the local path of an svn:externals
> definition is planed to be supported.
>
> It isn’t in the 1.5 version of svn : “Also, the local subdirectory part
> of the definition cannot contain .. parent directory indicators (such as
> ../../skins/myskin).”
>
> Is there a bug (enhancement) already opened for that in the subversion
> issue tracker?
>
> I didn't find one.

No, it was a deliberate design decision not to support that. If you want an

external to be dropped into a directory above the directory with the
svn:external property, you need to move the property up to a level that has
the
external checkout location to be a subdirectory.

What are you trying to do?

Blair

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1111400
Received on 2009-02-06 11:27:43 CET

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.