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

Re: Is there a way to 'sparsify' a working copy, without starting over?

From: Branko ─îibej <brane_at_apache.org>
Date: Mon, 13 Jun 2016 03:39:48 +0200

On 13.06.2016 01:24, Johan Corveleyn wrote:
> I have a (full depth infinity) working copy:
>
> parent
> \-- sub1
> \-- sub2
>
> I'd like to make it sparse, throwing out sub2, so it becomes:
>
> parent (empty)
> \-- sub1 (infinity)
>
> Is there a way to do that, without first making 'parent' entirely
> empty (by executing 'svn up --set-depth empty parent')? Making
> 'parent' depth=empty would also remove sub1 which I then have to
> retrieve from the server again.
>
> Note: removing sub2 by running 'svn up --set-depth exclude
> parent/sub2' is not the same (parent would still be depth=infinity, so
> new subdirs could appear on subsequent updates).

--set-depth empty on parent is the correct first step. The contents of
parent/sub1 will still be in the pristine store, so you won't be
fetching all that much data from the server.

-- Brane
Received on 2016-06-13 03:39:17 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.