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

Re: Relocate not working with externals

From: Larry Baird <lab_at_gta.com>
Date: Wed, 6 Jan 2016 10:37:41 -0500

Julian & Philip,

On Wed, Jan 06, 2016 at 11:27:27AM +0000, Philip Martin wrote:
> Julian Foad <julianfoad_at_apache.org> writes:
>
> > On 16 December 2015, Larry Baird wrote:
> >> On FreeBSD 10.2 using subversion 1.9.3 from ports, relocating a working copy
> >> with externals does not work.
> >
> > Hi, Larry. Thanks for the problem report. One way you could help push
> > this issue forward is to code your test case as a Python test in
> > subversion/tests/cmdline/relocate_tests.py. There is already a test
> > called 'relocate_with_relative_externals', so maybe start by cloning
> > that test.
Do you still need a Python script for this issue, now that Philip has a
simple script to duplciate the issue?

> I can reproduce:
>
> svnadmin create repo --compatible-version 1.8
> svnadmin create repo2 --compatible-version 1.8
> svnmucc -mm -U file://`pwd`/repo mkdir A mkdir B propset svn:externals '^/B B' A
> svnadmin dump repo | svnadmin load repo2
> svn co file://`pwd`/repo/A wc
>
> $ svn relocate file://`pwd`/repo2/A wc
> svn: E155024: Invalid source URL prefix: 'file:///home/pm/sw/subversion/obj/repo/A' (does not overlap target's URL 'file:///home/pm/sw/subversion/obj/repo/B')
>
> With 1.8 the relocate does not produce an error but does not relocate
> the external either:
Not relocating the external is a documented subverison issue. For me, this has
rarely been an issue. The externals in my world are seperate projects that
somebody else is maintaining. I don't need to be checking them in. (-:

> $ svn1.8 relocate file://`pwd`/repo2/A wc
> $ svn info --show-item url wc wc/B
> file:///home/pm/sw/subversion/obj/repo2/A wc
> file:///home/pm/sw/subversion/obj/repo/B wc/B
>
> The error does not occur if the working copy root is the repository
> root:
>
> $ svn co file://`pwd`/repo wc
> $ svn relocate file://`pwd`/repo2 wc
> $ svn info --show-item url wc wc/A wc/A/B
> file:///home/pm/sw/subversion/obj/repo2 wc
> file:///home/pm/sw/subversion/obj/repo2/A wc/A
> file:///home/pm/sw/subversion/obj/repo2/B wc/A/B

Larry

-- 
------------------------------------------------------------------------
Larry Baird
Global Technology Associates, Inc. 1992-2012 	| http://www.gta.com
Celebrating Twenty Years of Software Innovation | Orlando, FL
Email: lab_at_gta.com                 		| TEL 407-380-0220
Received on 2016-01-06 16:38:01 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.