How do I only Checkout (pull down) only parts of an SVN tree with TortoiseSVN?
Solution 1:
It looks like you were successful but I wanted to include a step-by-step guide in the hopes that it is helpful to others.
- Checkout
trunk
into a working copy with depth = "Only this item" - Open working copy
- Go to repo browser from the working copy
- Select your desired project subfolder(s), right-click and select "Update item to revision"
This will pull only the subfolder(s) you've selected into your working copy.
Solution 2:
This may be coming late, but for anyone finding this question and wondering if you could exclude existing directories: there appears to be a way to do so.
- Right click on the directory you want to exclude
- TortoiseSVN -> Update To Revision...
- From the Update Depth drop-down box select Exclude and press OK
That should delete the directory if it doesn't have any local mods and exclude it from further updates. If you ever need the directory back, use Michael Hackner's method above.
Solution 3:
Expanding on autonomy's answer from above ...
If you have checked out a whole project and later want to exclude certain folders or files from it....
- Right click on the parent directory that contains the dir/file you want to exclude
- TortoiseSVN -> Update To Revision...
- From the Update Depth drop-down box select Exclude and the click on "Choose items..." and
- select the items you want to keep
- and deselect the items you want to exclude
- then press OK & OK again
That should delete the directories/files you have deselected and exclude them from further updates. If you ever need the directory back, repeat the process and change your selection.
Solution 4:
If you go into the project-A folder and right-click==>SVN Update, it will only update the project-A folder and it's subfolders. Then you can do the same for project-B