[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: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 06 Jan 2016 11:27:27 +0000

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.

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:

$ 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

-- 
Philip Martin
WANdisco
Received on 2016-01-06 12:34:29 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.