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

Re: Issue: svn:externals syntax does not accept -rHEAD

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Fri, 22 Jun 2012 07:55:22 -0500

On Fri, Jun 22, 2012 at 6:19 AM, Stephen Butler <sbutler_at_elego.de> wrote:
>
>> -rHEAD ^/mapping_services/global/testing/full_test/globalresource6.xml_at_109 => gives me an error on svn up if gr.xml6_at_109 does no longer exist on HEAD
>> ^/mapping_services/global/testing/full_test/globalresource6.xml (your proposal) => gives me the wrong object I am not interested in
>
> Who put the wrong object there?  If you can solve that organizational
> problem, the technical problem outlined above will no longer be relevant,
> and your Subversion usage will be much simpler and more robust.

I think the usual approach would be to copy to a branch at a point
before you expect disruptive operations like deleting/replacing an
object to happen. That is, if you branched at your rev 109 example,
work on that branch could continue on its own path while the trunk
diverges in its own way. Besides giving the HEAD you are trying to
find a natural place to live, the branch also lets you give it a more
human-friendly name for the external reference. Note that you can
even wait until after the disruptive change happens and copy the
branch from an earlier rev if the changes are not predictable. Also,
when you want to absolutely nail down the referenced external revision
you can copy to a tag which, by convention, has no further commits.
Subversion handles these copies efficiently and they are much easier
to follow than deleting/replacing objects in the same path (both for
subversion and the people using the repository).

-- 
  Les Mikesell
     lesmikesell_at_gmail.com
Received on 2012-06-22 14:55:54 CEST

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.