On Thu, Nov 11, 2010 at 9:10 AM, San Martino <sanmrt...@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.