views:

240

answers:

2

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?

+4  A: 

If you go into the project-A folder and right-click==>SVN Update, it will only update the project-A folder and it's subfolders. Then you can do the same for project-B

Adam Albrecht
This is before I've even pulled it down once. Do I just create the trunk directory locally, then go in there, create the project-A folder, and then do a checkout of that project into that folder?
Scott Whitlock
Answering myself: yes, I had to create the trunk folder, do a checkout of trunk to this folder ("only this item"), then go into that folder, go to the Repo Browser and pull down the projects and files I wanted.
Scott Whitlock
Yeah you never have to pull down an entire project. From the Repo Browser, you can pull down whatever folders you want.
Adam Albrecht
+7  A: 

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.

Michael Hackner
+1 :-) .........
Critical Skill