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

RE: Re: svn:externals set to tag

From: Leeuw van der, Tim <tim.leeuwvander_at_nl.unisys.com>
Date: 2003-09-11 14:02:49 CEST

Hi,

You can often not equate a tag with a revision on the trunk, because often a
tag is made from a branch rather than the trunk. That's how for instance
subversion releases themselves are made.
So it's not sufficient to have svn:externals pointing to a revision on the
trunk if you really want the tag, the official released version.

Anyways, Daniel, perhaps you can send us your exact recipe? When exactly do
you update projectA for instance, when exactly to you make the new tag in
projectB, when exactly to you change the svn:externals property in projectA?

With regards,

--Tim

-----Original Message-----
From: Michael Wood [mailto:mwood@its.uct.ac.za]
Sent: donderdag 11 september 2003 12:11
To: Subversion User ML
Subject: Re: svn:externals set to tag

On Thu, Sep 11, 2003 at 11:15:45AM +0200, Daniel Schlyder wrote:
> Hi list,
>
> Using svn:externals is nice, but I've found it impractical to fetch
> the bleeding edge from trunks, so I set it to fetch tags instead.
> While this works, I get into trouble when I want to upgrade to a new
> tag:
>
> 1) Project A fetches tag from project B.
>
> 2) I make changes in project B trunk.
>
> 3) I run 'svn up' in project A, the changes in project B's trunk is,
> as expected, not fetched, BUT the revision number is updated.
>
> 4) I tag project B with the new changes and update external in project
> A, but now when I run 'svn up' it detects that revision number is
> already up-to-date, and does not fetch the modified files from project
> B.
>
>
> How can I get this to work? Or is svn:externals simply not meant to be
> used to fetch tags?

Do you mean this?

projB: svn cp trunk tags/tag1 (rev=15)

projA: svn ps svn:externals "projB file:///.../projB/tags/tag1" trunk

projB: do some work on trunk. (rev=23)
projB: svn cp trunk tags/tag2 (rev=24)

projA: svn up (rev of external = 24)
projA: svn ps svn:externals "projB file:///.../projB/tags/tag2" trunk
projA: svn up (Nothing updated since the rev hasn't changed.)

I'm not sure svn:externals is designed so that you can update the
property to another tag. Instead, you could just take note of the
revision tag1 is created and do this:

projA: svn ps svn:externals "projB -r 15 file:///.../projB/trunk" trunk
[...]
projA: svn ps svn:externals "projB -r 24 file:///.../projB/trunk" trunk

But I've never used svn:externals, so I could be wrong :)

BTW, the "foo/bar -r 1234 http://example.com/repos/zag" syntax for
svn:externals doesn't seem to be mentioned in the book. It is in the
output of "svn help propset" though.

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 11 14:03:39 2003

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.