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

Re: "svn relocate" corrupts the working copy

From: Philip Martin <philip_at_codematters.co.uk>
Date: Thu, 23 Jan 2014 13:35:37 +0000

Philip Martin <philip.martin_at_wandisco.com> writes:

> svnadmin create repo
> svn mkdir -mm file://`pwd`/repo/A
> svn co file://`pwd`/repo wc
> mv repo repo2
> svn relocate file://`pwd`/repo file://`pwd`/repo2 wc
> svn cp -rhead wc/A wc/X
> sqlite3 wc/.svn/wc.db "select local_relpath, repos_id from nodes"
> |2
> A|2
> X|1
>
> The copy is storing the wrong repos_id for the destination.

The copy does a temporary checkout to wc/.svn/tmp/svn-xxxx where the
repos_id of 1 is correct. The subsequent wc-to-wc copy fails to adjust
the repos_id. We need to determine the required repos_id and pass it
through to db_op_copy.

-- 
Philip
Received on 2014-01-23 14:36:11 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.