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?
To set your global ignore pattern (with TortoiseSVN) right click Windows Explorer –> TortoiseSVN –> Settings. Once you click on settings enter your global ignore pattern. I'm blocking everything in my bin folder, obj folder, anything that may have been named *.
To export single files with TortoiseSVN, you have to use the repository browser (the section called “The Repository Browser”). Simply drag the file(s) you want to export from the repository browser to where you want them in the explorer, or use the context menu in the repository browser to export the files.
If the clipboard contains such versioned items, you can then use TortoiseSVN → Paste (note: not the standard Windows Paste) to copy or move those items to the new working copy location. You can copy files and folders from your working copy to another location in the repository using TortoiseSVN → Branch/Tag.
Set the svn:ignore property of the parent directory: svn propset svn:ignore dirname . If you have multiple things to ignore, separate by newlines in the property value.
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.
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