Svn Checkout Directories only

project/
β”œβ”€β”€ dir1
β”‚   └── subdir1
β”‚       β”œβ”€β”€ file1
β”‚       β”œβ”€β”€ file2
β”‚       └── file3
β”œβ”€β”€ dir2
β”‚   β”œβ”€β”€ subdir1
β”‚   └── subdir2
└── dir3
    β”œβ”€β”€ subdir1
    β”‚   β”œβ”€β”€ file1
    β”‚   └── file2
    └── subdir2

Checkout all directories only on the root of the repo

svn co --depth immediates http://svn.xxx.com/project .

This would checkout the empty directories dir1, dir2, dir3

Get another level of the directories

svn up --set-depth immediates dir2

This would update all subdirectories under dir2, i.e. dir2/subdir1 and dir2/subdir2

Get all of the contents inside dir3

svn up --set-depth infinity dir3

This would update all subdirectories and files under dir3 recursively

List folder with depth

List immediates folder

svn ls --depth immediates .

List folder recursively

svn ls --depth infinity .

Reference

Last updated

Was this helpful?