Reputation: 3017
We use SVN for a giant server of design assets at my job. I like to keep the root of our server checked out, so I can get organizational updates to the directory hierarchy as they're made. But their are certain directories within that I won't ever be touching... and they're huge... 15 gb+.
I want to rm these directories, and have them not pull back down when I svn up from the root. Is this possible?
Upvotes: 0
Views: 707
Reputation: 14276
If you're checking things out fresh, use pmod's answer to avoid downloading the GBs. If you've already got a working copy, you can reset the depth with:
svn update --set-depth empty <dir>
Upvotes: 3
Reputation: 10997
What you need is not to ignore these folders (since ignoring means setting them out of repository), but to control the depth of checkout.
You can checkout your root with --depth immediates option this will only checkout subfolders of the root dir. Then go inside and do the same with folders you need or checkout with --depth infinity directory you are interested in.
PS GUI svn clients like TortoiseSVN make this process more convenient.
Upvotes: 3
Reputation: 146450
I'm not sure you can do exactly what you describe, but you can definitively do the opposite: checkout only the directories you need. The feature is called Sparse Directories.
Upvotes: 2