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

Re: Create a new working copy by cloning a subtree of an existing working copy?

From: Stefan Podskubka <s.podskubka_at_hcs.at>
Date: Mon, 02 Jan 2012 11:38:37 +0100

On 24.12.2011 15:03, Nico Kadel-Garcia wrote:
> On Tue, Dec 20, 2011 at 10:15 AM, Stefan Podskubka<s.podskubka_at_hcs.at> wrote:
>> On 20.12.2011 15:44, Kuno Meyer wrote:
>>> With SVN 1.7, is there a way to create a new working copy by cloning a
>>> subtree
>>> of an existing working copy?
>>>
>> One thing that comes to mind is cloning the existing working copy and then
>> performing an svn switch to the subtree.
>> However, I don't know exactly how the switch is done and if it performs
>> better than a fresh checkout. I suppose it does, since all the files and
>> pristines are already in the existing checkout.
> *Do not clone with svnadmin hotcopy* for this!!!! Make sure you have a
> different uuid, to avoid "split-brain" problems if the working copy is
> reset to the original copy by someone who thinks that can work.
>
> Or use hotcopy, but make absolutely sure to change the uuid on the new repo.
svnadmin hotcopy is used to clone a repository, not a working copy,
which doesn't make much sense in regard to the original question.
But what you were pointing out is a valid concern if someone would want
to clone a repository in contrast to cloning a working copy, which only
results in a second working copy linked to the same repository.
Received on 2012-01-02 11:39:31 CET

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.