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
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?