Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I only Checkout (pull down) only parts of an SVN tree with TortoiseSVN?

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?

like image 650
Scott Whitlock Avatar asked Nov 03 '09 15:11

Scott Whitlock


People also ask

How do I checkout with 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.

How do I checkout a specific version of svn?

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.

How do you svn checkout a folder?

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".

What is the difference between svn checkout and export?

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 .


1 Answers

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.

  1. Checkout trunk into a working copy with depth = "Only this item"
  2. Open working copy
  3. Go to repo browser from the working copy
  4. 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.

like image 162
Michael Hackner Avatar answered Sep 22 '22 22:09

Michael Hackner