Fuego DeBassi
Fuego DeBassi

Reputation: 3017

Ignore a directory in SVN

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

Answers (4)

Michael Brewer-Davis
Michael Brewer-Davis

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

pmod
pmod

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

&#193;lvaro Gonz&#225;lez
&#193;lvaro Gonz&#225;lez

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

Grammin
Grammin

Reputation: 12205

svn propset svn:ignore <dir>

Will ignore the dir.

Upvotes: 1

Related Questions