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

Re: Creating sparse working copy retroactively from existing disjoint working copies

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sun, 19 Aug 2012 18:00:40 +0100

Robert Whitaker wrote on Wed, Aug 15, 2012 at 23:00:53 -0700:
> ---o---
> STATEMENT 3:
> ---o---
> Assume I didn't know about sparse checkouts (or about the --depth
> flag) and assume I had created my working copy by creating all the
> intermediary directories using "mkdir" as follows
>
> $ mkdir -p /svn-test/mom/daughter
>
> $ cd /svn-test/mom/daughter
>
> $ svn co svn://REPOSITORY/mom/daughter/granddaughter1
> A granddaughter1/bunny1.txt
> A granddaughter1/bunny2.txt
> Checked out revision 85792.
>
> ---o---
> STATEMENT 5:
> ---o---
> This is our problem statement: Assume I want to modify the above
> working copy in-place and turn it into a sparse checkout. The end
> result should be that I can run "svn status" from all intermediary
> directories.

I don't think you have tried yet:

% svn co $REPOSURL/mom/daughter/granddaughter1 \
         /svn-test/mom/daughter/granddaughter1
% svn co --depth empty $REPOSURL /svn-test
% svn up --parents --force /svn-test/mom/daughter/granddaughter1

Also note that the behaviour is likely to be different between 1.6 and
1.7 (the relevant portions of the library were reworked).
Received on 2012-08-19 19:01:16 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.