5

I need to checkout from a huge repository (over 25GB in size). Still I know that some big folders will not be needed. Can I avoid downloading them somehow?

Sameer Singh
  • 1,358
  • 1
  • 19
  • 47
Eugeny89
  • 3,797
  • 7
  • 51
  • 98
  • possible duplicate of [How to checkout few files and folders alone without checking out entire source](http://stackoverflow.com/questions/4032059/how-to-checkout-few-files-and-folders-alone-without-checking-out-entire-source) – Keith Nicholas Aug 13 '13 at 04:56
  • Is it possible to rework your project layout? it seems your real problem is poorly laid out source. – thekbb Aug 14 '13 at 15:21

2 Answers2

7

You want to look up Sparse Checkouts in the svn book, or the Tortoise manual.

In short - checkout the root folder, using "just this item" option in the checkout dialog, then use the repo browser to view the project, select the ones you want to checkout and use the "update item to revision" menu item to check them out. This allows you to check out a working copy that contains only a partial set of the repo.

Alternatively, you can use the exclude option to remove a directory you've already checked out.

gbjbaanb
  • 51,617
  • 12
  • 104
  • 148
  • Folders can be selected in the first checkout, with the button "Choose items". – Dialecticus Aug 13 '13 at 10:18
  • I know, but I always prefer to checkout just the root, and then I can pick and choose what I need afterwards. Its a hangover from a repo several gig in size, I would be work on a piece at a time as needed. – gbjbaanb Aug 14 '13 at 07:52
0

You need to configure SVN server user restriction.

Suppose you need to get full access on your product(ABCProduct), but you are not interested on "database" folder to download.

Then you need to write below script in SVN server( you need SVN admin privilege to perform this ).

[Repo:/branches/ABCProduct]
me = rw

[Repo:/branches/ABCProduct/database]
me = 

Server configuration

Community
  • 1
  • 1
Ashif
  • 1,652
  • 14
  • 30
  • @bahrep This is a permanent workaround in server side only. The advantage of this approach is, checkout can perform every time directly with out sparse update. Disadvantage of this approach is user doesn't have any more access on restricted items/folder. – Ashif Aug 13 '13 at 13:18