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

Re: svn:externals set to tag

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-09-11 12:10:51 CEST

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
Received on Thu Sep 11 12:11:48 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.