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

Re: Tagging with Externals via Scripts

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-09-15 00:13:43 CEST

On 9/14/07, Jonathan Herriott <herriojr@gmail.com> wrote:
> Hi all,
>
> Sorry if this gets posted twice, but the first time I submitted, I
> wasn't registered, so I don't know if it got through or not.
>
> I've been having some issues with subversion which I was hoping you
> guys could rectify.
>
> First of all, my project is set up with about 5 external projects
> (which get updated quite frequently), and
> I'm looking to tag my project along with my externals via a script.
> The method I go about it is:
>
> svn pg svn:externals $MY_PROJECT
>
> and then I used the returned externals to tag them vi svn cp.
>
> I then tag my main project via svn cp, and I run into a problem while
> setting the externals to the new externals.
>
> I have tried using svn ps svn:externals --revprop -r HEAD
> $NEW_EXTERNALS $MY_PROJECTS_TAG.
>
> When I do a checkout of the project via svn co $MY_PROJECTS_TAG, the
> externals are still set to the original externals instead of the
> tagged externals.
>
> Any idea on why this is and how I can get around it?

It is because when you copy to make the branch/tag, the externals
point at a "moving target" - they aren't fixed at a specific version.
By design. Everything was copied exactly.

svncopy may be what you need.
http://svn.collab.net/repos/svn/trunk/contrib/client-side/svncopy/svncopy.README

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 15 00:10:16 2007

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.