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

RE: Using a varable in an external URL

From: anthony winner <anthony.winner_at_insydesw.com>
Date: Tue, 26 May 2009 12:24:04 -0700

Unfortunately no, as all the externals are in a 2 or three different
repositories, with the base project being in it's own repository.

Anthony Winner
Sr. Software Engineer, Insyde Software
-----Original Message-----
From: Andy Levy [mailto:andy.levy_at_gmail.com]
Sent: Tuesday, May 26, 2009 10:24 AM
To: anthony winner
Cc: users_at_subversion.tigris.org
Subject: Re: Using a varable in an external URL

On Tue, May 26, 2009 at 13:10, anthony winner
<anthony.winner_at_insydesw.com> wrote:
> Due to the nature of our build tree we have multiple externals pointing to
> folders in a single tag, i.e.
>
> Dir1   http://domain/repos/proj1/Tag/tagA/dir1
> Dir2   http://domain/repos/proj1/Tag/tagA/dir2
> Dir3   http://domain/repos/proj1/Tag/tagA/dir3
> Dir4   http://domain/repos/proj1/Tag/tagA/dir4
>
> Obviously this is a shortened version, we have > 10 folders like this, and
> when updating to a new tag, editing all the individual externals is a
pain.
> What I would live to have a variable set the tag and do something like
this:
>
> CurrentTag = "tagA"
> Dir1   http://domain/repos/proj1/Tag/$CurrentTag$/dir1
> Dir2   http://domain/repos/proj1/Tag/$CurrentTag$/dir2
> Dir3   http://domain/repos/proj1/Tag/$CurrentTag$/dir3
> Dir4   http://domain/repos/proj1/Tag/$CurrentTag$/dir4
>
>
> Is this possible, or is there some method to accomplish this that I have
> overlooked in the documentation?

Would using relative URLs in your externals (introduced in SVN 1.5)
alleviate this?
http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2354081

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-26 21:25:16 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.