views:

25

answers:

3

In my project I have many folders. I certainly know I want have changes in only few files (around 15) each of them are in 7 different folders. Also, I don't want to checkout the entire source to accomplish it. Is it possible to checkout only the required folders alone?

I'll have this scenario too often for different sources. Is it possible to checkout only selected folders at one shot?

Edit

Say for example I have a source folder contains. 5 sub-folders. Like,

source

-- Core

-- Helper

-- Extensions

-- Themes

-- Resources

And, I want to check-out Extensions and Themes folders alone. But, I don't want to check-out each of the folders separately. I want it like, I'll give the check-out location as svn.svnhost.com/trunk/project1/source. [Then, I'll select Extensions and Themes give a single check-out]

Expected Checkout:

source

-- Extensions

-- Themes

Some thing like:

svn co svn.svnhost.com/trunk/project1/source --foldernames Extensions, Themes
+1  A: 

In the Tortoise navigator (right click) navigate to a specific folder and perform checkout against the location

Alan Stephens
@Alan Stephens I have updated my question. Please check.
Avatar
+1  A: 

Yes, See if you have an Repository address like:

https://elastik.svn.sourceforge.net/svnroot/elastik/

Simply add the folder you want on to the end. So if I only want the "trunk/includes" folder:

https://elastik.svn.sourceforge.net/svnroot/elastik/trunk/includes
James
+2  A: 
JesperE
@JasperE This is cool. Thanks Jesper :)
Avatar
@JasperE But, I cannot do this with a single svn command right? No matter, the above mentioned method `immediates` itself saves much time. :)
Avatar
No, you need multiple commands. OTOH, you can apply this technique recursively if you for example just want to checkout parts of the Extensions or Themese directories.
JesperE
This is actually a pretty cool feature, although it hasn't really suited my situation really well. Also, you cannot **reduce** the visibility level; so if you have set the depth to infinity, there is no way to reduce it (pruning) without checking out everything again.
JesperE
@JasperE Thanks :). I'll write a check-out utility atleast to ease the process. Thanks again.
Avatar
JesperE: The manual says you cannot reduce the visibility level, but with svn 1.6 that's no longer true: Something like "svn up --set-depth exclude foobar" actually does work now.
slowdog
+1 @slowdog woha!
Avatar