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

Freezing externals when tagging

From: Phil Endecott <spam_from_subversion_users_at_chezphil.org>
Date: 2005-11-01 22:09:08 CET

Dear All,

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

I'm sure I'm not the first one to want to do this. Does anyone have any
suggestions?

Cheers,

--Phil.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 1 23:21:56 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.