I'm using TortoiseSVN and I want to do a Checkout of an existing repository into a local directory. However, I only want to pull down certain portions of the file tree. Is there a way I can do that?
For instance:
/trunk /project-A /project-B /project-C
Let's say I just want to pull down trunk, project-A and project-B. How do I do that?
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.
Specify the subversion repository URL to check out, such as "https://svn.apache.org/repos/asf/ant/". You can also add "@NNN" at the end of the URL to check out a specific revision number, if that's desirable.
Create a folder where you will store project files. Right-click on the folder you created and select "SVN Checkout" (see image below). Enter the URL of your repository (something like "http://wiki.csc.calpoly.edu/307S07osos/svn"). Click on "OK".
svn export simply extracts all the files from a revision and does not allow revision control on it. It also does not litter each directory with . svn directories. svn checkout allows you to use version control in the directory made, e.g. your standard commands such as svn update and svn commit .
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.
trunk
into a working copy with depth = "Only this item"This will pull only the subfolder(s) you've selected into your working copy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With