You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by anthony winner <an...@insydesw.com> on 2009/05/26 17:10:35 UTC

Using a varable in an external URL

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?

Thanks,

Anthony Winner

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Using a varable in an external URL

Posted by Bob Archer <bo...@amsi.com>.
> 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.

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

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

Have you looked at svncopy.pl? I think it handles what you are asking for.

http://svn.collab.net/repos/svn/trunk/contrib/client-side/svncopy/svncopy.README

BOb

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Using a varable in an external URL

Posted by anthony winner <an...@insydesw.com>.
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@gmail.com] 
Sent: Tuesday, May 26, 2009 10:24 AM
To: anthony winner
Cc: users@subversion.tigris.org
Subject: Re: Using a varable in an external URL

On Tue, May 26, 2009 at 13:10, anthony winner
<an...@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@subversion.tigris.org].


Re: Using a varable in an external URL

Posted by Andy Levy <an...@gmail.com>.
On Tue, May 26, 2009 at 13:10, anthony winner
<an...@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@subversion.tigris.org].