Exclude specific subdirectory from SVN Checkout in subclipse
The problem is pretty开发者_JAVA百科 straightforward, I'm just not very well-versed in these tools (or CVSes in general).
Each branch of the project contains 4 folders:
branch-1
folder1
...
folder4
branch-2
folder1
...
folder4
...
folder4
is ginormous (~2GB), contains things I'm usually not interested in, and I'd rather not download it every single time -- it takes forever, and takes up space.
I see that the "Checkout from SVN" dialog has a Depth field, with options:
- Fully recursive
- Immediate children, including folders
- Only file children
- Only this item
None of these options is quite what I want. 1 and 2 will still download folder4
, while 3 and 4 will omit everything.
Ideally, I'd be able to simply omit folder4
from the download initially, with the option to pull it down later. I don't mind seeing it as an incoming change (and simply ignoring it) during sync operations.
Any ideas? Am I missing something?
P.S. I tried to post this question in Super User, but the site is giving me real problems.
Yes, you can do this using Subclipse:
- Check out using the "Immediate children" option.
folder1
, etc. will be empty. - Select the empty folders (except
folder4
) in the newly-checked out project. - Choose Team → Update to Version...
- Set the depth to "Fully recursive".
- Tick "Change working copy to specified depth".
- Click OK.
Another way to do this involves the svn
command line client:
- Check out using the "Only this item" option. The top-level directory will be empty (
folder1
etc. will be missing). cd project-dir
svn up folder1 folder2 folder3
精彩评论