[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: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 26 May 2009 13:24:09 -0400

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=2353973

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