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

Re: Tracking svn:externals?

From: Kalin KOZHUHAROV <kalin_at_thinrope.net>
Date: 2006-02-16 17:41:38 CET

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:

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.


|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 16 17:55:41 2006

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.