Alex Rivera | Logout

SVN checkout ignore folder

Asked 2008-10-10T19:54:44.313
103

Can I ignore a folder on svn checkout? I need to ignore DOCs folder on checkout at my build server.

edit: Ignore externals isn't an option. I have some externals that I need.

Edit
Report

3 Answers

106

You can't directly ignore folders on a checkout, but you can use sparse checkouts in svn 1.5. For example:

$ svn co http://subversion/project/trunk my_checkout --depth immediates

This will check files and directories from your project trunk into 'my_checkout', but not recurse into those directories. Eg:

$ cd my_checkout && ls
bar/ baz foo xyzzy/

Then to get the contents of 'bar' down:

$ cd bar && svn update --set-depth infinity
answered 2008-10-20T11:44:29.913
4

Yes, Subversion 1.5 has a feature called Sparse checkouts that can do exactly this sort of thing.

answered 2008-10-10T19:56:28.367
1

No, ignore is only for adding files.
You can use sparse checkouts (if you use svn 1.5)

answered 2008-10-10T19:56:03.030

Your Answer