📁
til
  • Today I Learned
  • Bookmarks
    • Bookmarks
  • Centos
    • How to limit bandwidth on CentOS
  • CI/CD
    • Add a mac as a GitLab runner
    • Setup CI pipeline for iOS projects on gitlab.com
  • cocoapods
    • private-spec-repo
    • CocoaPods save project.pbxproj file in XML plist format on Xcode 7.3.1
  • git
    • Git keeps asking password after El Capitan Upgrade
    • change-case-sensitivity-of-filename
    • interactive-rebase
    • Fork a repo
  • hacking
    • Decompile Android apk
  • homebrew
    • Bash Completion
  • ios
    • ats
    • Failed to open Xcode (LSOpenURLsWithRole() failed with error -10699)
    • Redirect to Settings Page
    • Retrieve expiry date of Provisioning Profile Certificate from .ipa
    • WKWebView set custom HTTP headers
    • IAP applicationUsername is nil
  • Jenkins
    • Create stage dynamically in declarative pipeline
  • mac
    • Catalina failed to sync iPhone with Finder
  • networking
    • shadowsocks vs. VPN
  • Objective-C
    • Keep subview in Scroll View always on screen
    • Custom View using xib
    • Scroll up TextField when keyboard shows
    • autolayout-hugging-vs-resistance
  • Regex
    • regex-chinese-char
  • SQL
    • update-json-value-in-postgresql
    • select-random-row-in-sql
  • SSH
    • verify-ssh-passphrase
  • SVN
    • Svn Checkout Directories only
  • swift
    • equatable
  • unix
    • Create and Grant Sudo Privileges to user
    • Create and Change Current Directory
    • Show ASCII Text welcome message when login with SSH
  • vim
    • Vim with Multiple Files
Powered by GitBook
On this page
  • Checkout all directories only on the root of the repo
  • Get another level of the directories
  • Get all of the contents inside dir3
  • List folder with depth
  • List immediates folder
  • List folder recursively
  • Reference

Was this helpful?

  1. SVN

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

Previousverify-ssh-passphraseNextequatable

Last updated 5 years ago

Was this helpful?

http://svnbook.red-bean.com/en/1.7/svn.advanced.sparsedirs.html
http://stackoverflow.com/a/50980/3869284