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

Re: check out everything except, '<this>' subfolder should be shallower

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 24 Jan 2013 10:14:57 +0000

Lathan Bidwell <lathan_at_andrews.edu> writes:

> How can i checkout out this sample repository without downloading the /b/media/ and /d/media folders?
>
> The example i have (with checking it all out first is):
> svn checkout '<repository>' --depth immediates
> svn update --set-depth exclude /b/media
> svn update --set-depth exclude /d/media
> svn update --set-depth infinity *

You can do an empty checkout, use update and switch to make the
directories into files, update the working copy to infinity, switch the
directories back to empty and then update to excluded:

svn co URL --depth empty wc
svn up --depth empty wc/b
svn up --depth empty wc/d
svn sw ^/some/file --ignore-ancestry wc/b/media
svn sw ^/some/file --ignore-ancestry wc/d/media
svn up --set-depth infinity wc
svn sw ^/b/media --set-depth empty --ignore-ancestry wc/b/media
svn sw ^/d/media --set-depth empty --ignore-ancestry wc/d/media
svn up --set-depth exclude wc/b/media
svn up --set-depth exclude wc/d/media

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2013-01-24 11:15:39 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.