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

Re: Sparse checkouts automation

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Thu, 11 Nov 2010 10:14:09 +1000

On Thu, Nov 11, 2010 at 9:10 AM, San Martino <sanmrtn96_at_gmail.com> wrote:

> Hello,
>
> Suppose you have a layout like this:
> /trunk
> /dir1
> /dir1_1
> file1.txt
> file2.txt
> /dir1_2
>
> Is there a way with one command to sparse-checkout al the elements
> of the path to file1.txt (included) but no more than those elements ?
>
> That is, the local working copy should look like this after one command:
> /trunk
> /dir1
> /dir1_1
> file1.txt
>
> Note that file2.txt and dir1_2 won't appear.
>

With one command, no. But you can do the following:

svn checkout --depth=empty svn://host/repository/trunk trunk
cd trunk
svn update --depth=empty dir1
cd dir1
svn update --depth=empty dir1_1
cd dir1_1
svn update file1.txt

There's probably a quicker method of doing it, but you'll still need
multiple commands.

Cheers,
Daniel B.
Received on 2010-11-11 01:15:12 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.