Reputation: 11106
I'm looking to checkout several projects (organized in different folders at different hierarchies) from a SVN repositories. But all projects are placed under one top level root folder. Most projects have trunk, tags, branches folders. Some have project files directly in the main folder without 'trunk' etc..
How can checkout only the trunk folders of all the projects and exclude tags, branches etc but all at once automatically?
Upvotes: 2
Views: 530
Reputation: 28154
Use Sparse Directories.
Check out each project, but only the most immediate children (not fully recursive) (svn checkout URL PATH --depth immediates
). Then, for each trunk, run svn update --set-depth infinity
and the full tree under trunk
will be populated.
If you want to check out from the root (which I don't recommend), do the same thing - check out the immediate children, then svn up --set-depth infinity project1/trunk
, svn up --set-depth infinity project2/trunk
and so on.
Upvotes: 3