[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: <pll_at_lanminds.com>
Date: 2003-09-11 15:57:23 CEST

In a message dated: Thu, 11 Sep 2003 11:15:45 +0200
Daniel Schlyder said:

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

I'm not sure this is what you're looking for, nor do I know if it
will work, but it's worth a try :)

Assuming that what you're doing is this:

    $ svn cp -rXXXX file:///path/to/reopos/trunk file:///path/to/repos/tags/XXXX

And that you're setting svn:externals to be:

    tags/XXXX file:///path/to/repos/tags/XXXX

When you create the initial tags/XXXX, why not also create another
tags/latest which always points to the same rev of trunk? Remember,
copies are cheap in subversion :) So, you're tag process might be:

    $ svn cp -rXXXX file:///path/to/reopos/trunk file:///path/to/repos/tags/XXXX
    $ svn rm file:///path/to/repos/tags/latest
    $ svn cp -rXXXX file:///path/to/reopos/trunk file:///path/to/repos/tags/latest

Then, you can set svn:externals to:

    latest/ file:///path/to/repos/tags/latest

Or something like that.

(Note: this process has not been tested, and probably frought with
peril if assumed to be so :)

GPG Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE
	 If you're not having fun, you're not doing it right!
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 11 15:58:21 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.