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

Re: Freezing externals when tagging

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-11-02 00:26:26 CET

On Nov 1, 2005, at 22:09, Phil Endecott wrote:

> I have an application and a library in the same repository, but
> with their own trunk and tags directories, i.e.
> repo
> library
> tags
> trunk
> appl
> tags
> trunk
> The application refers to the library using svn:externals, i.e.
> appl/trunk has property svn:externals set to "lib http://.../
> library/trunk".
> I tag releases of the application using "svn cp appl/trunk appl/
> tags/version123". But when I do this the externals property is not
> "frozen" in any way, so someone checking out a tagged version will
> continue to get the most recent version of the library. I want to
> avoid that happening.
> I don't normally explicitly tag the library, so I'd prefer for the
> external to refer to the revision number of the library at the time
> that the tag was made. I think that I need to change the
> svn:external property during the copy to add "-r rev".
> There are a couple of alternatives. I could tag that library at
> the same time as I tag the application, and have the external refer
> to the tagged library. Or I could get rid of the external when I
> tag and copy the current version of the library in explicitly.
> Perhaps I need a hook script to do this for me. Maybe one already
> exists? (Google finds plenty of people complaining about
> externals, but I don't see any solutions.)

Look into the svncopy.pl script which is in the contrib/client-side
directory of the Subversion source distribution.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 2 00:28:12 2005

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.