You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rony Shapiro <Ro...@discretix.com> on 2006/02/16 09:19:25 UTC

Tracking svn:externals?

Hi,

I'm using svn:externals to link between application projects and the
libraries they use.

My repositories are in the classic trunk/branches/tags structure, and
there's a strict naming convention in place for tags and branches.

Currently, when I make a tag off the trunk, the externals property of
the tag still points to the same place as the trunk copy, as would be
expected.

What I would like is a way to automatically change the externals
property to track the branch/tag. For example, if proj1/trunk has an
svn:externals property with "lib1 svn://.../lib1/trunk", when I create a
tag proj1/tags/T1, I would like the svn:externals property of T1 to be
set to "lib1 svn://.../lib1/tags/T1".

Has anyone written a script or hook that does something like this? Any
suggestions?

	Thanks,

		Rony

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Tracking svn:externals?

Posted by Kalin KOZHUHAROV <ka...@thinrope.net>.
Rony Shapiro wrote:
> Hi,
> 
> I'm using svn:externals to link between application projects and the
> libraries they use.
> 
> My repositories are in the classic trunk/branches/tags structure, and
> there's a strict naming convention in place for tags and branches.
> 
> Currently, when I make a tag off the trunk, the externals property of
> the tag still points to the same place as the trunk copy, as would be
> expected.
> 
> What I would like is a way to automatically change the externals
> property to track the branch/tag.
As subversion does not distingusih between trunk and branch etc (and having
a "classic trunk/branches/tags structure" does not have any meaning for
subversion) automation at subversion level is not possible, IMHO.

> For example, if proj1/trunk has an
> svn:externals property with "lib1 svn://.../lib1/trunk", when I create a
> tag proj1/tags/T1, I would like the svn:externals property of T1 to be
> set to "lib1 svn://.../lib1/tags/T1".

Why whould you want that?

According to this:
	http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html

You can use a fixed revision in a svn:externals definition. That will
simplify your life, IMHO. So when you copy your trunk to a branch, just fix
your externals revisions to the latest in that repository. Then nothing will
change with time. (read the blue tip in the above URL)

*If* you are using svn:externals to point inside the same repository, it
might be easier to reorganize it without svn:externals.


> Has anyone written a script or hook that does something like this? Any
> suggestions?
Hook will be inappropriate (remember only server-side hooks are supported),
but a script should not be difficult to write in a linux environment. For
the other OS - use some GUI and patch it to do what you want.

Just my 2 yen.

Kalin.

-- 
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Tracking svn:externals?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 16, 2006, at 10:19, Rony Shapiro wrote:

> Currently, when I make a tag off the trunk, the externals property of
> the tag still points to the same place as the trunk copy, as would be
> expected.
>
> What I would like is a way to automatically change the externals
> property to track the branch/tag. For example, if proj1/trunk has an
> svn:externals property with "lib1 svn://.../lib1/trunk", when I  
> create a
> tag proj1/tags/T1, I would like the svn:externals property of T1 to be
> set to "lib1 svn://.../lib1/tags/T1".
>
> Has anyone written a script or hook that does something like this? Any
> suggestions?

svncopy.pl:

http://svn.collab.net/viewvc/svn/trunk/contrib/client-side/ 
svncopy.pl.in?view=markup&rev=10798





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org