Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check out just the trunks of multiple projects from the same repository?

Tags:

We have a single SVN repository with multiple related projects. Like so...

\repo   \Project1     \branches     \tags     \trunk   \Project2     \branches     \tags     \trunk   \Project3     \branches     \tags     \trunk 

I would like to check out the trunk of each project into my workspace without the branches/tags folders.

\workspace   \Project1     \trunk   \Project2     \trunk   \Project3     \trunk 

Is there a way to do this without checking each trunk out individually?

like image 279
Chris Nava Avatar asked May 18 '09 19:05

Chris Nava


People also ask

How to checkout project using TortoiseSVN?

Right click on the checked out folder, then use TortoiseSVN → Update to Revision and select Choose items.... This opens the same dialog that was available in the original checkout and allows you to select or deselect items to include in the checkout.

How to checkout SVN repository using TortoiseSVN?

Right-click on the folder and the Explorer context menu will appear, along with some new TortoiseSVN commands. Select SVN Checkout…' From here you can set the following properties: URL of Repository — the URL of the repository you wish to check out.

Should you have one repository per project?

For single company it is probably the best idea to have single global repository as it is much easier to setup backup/mirroring/whatever on single piece than on hundred of small repositories.


1 Answers

Short answer: no.

Long answer: See http://svnbook.red-bean.com/en/1.5/svn.advanced.sparsedirs.html and do your checkouts in a looped script.

like image 193
Jeff Ferland Avatar answered Oct 11 '22 10:10

Jeff Ferland