Fred Foo
Fred Foo

Reputation: 363607

Selective SVN checkout based on pattern

I'm trying to partially checkout a large SVN repository that contain lots of files I don't need: object files, .class files, sound and other data files. These files may occur in any directory.

I'm tired of going through all the subdirs in the repo browser to see whether I need to check them out recursively or sparsely. Does SVN offer a way to checkout only files that match or don't match a (regex, glob or other) pattern?

Upvotes: 2

Views: 6955

Answers (1)

hometoast
hometoast

Reputation: 11782

Not directly in svn, no. See ( Can you do a partial checkout with Subversion? ).

You'd have to do a checkout at empty depth, then in your own script, update the files that match a pattern

Upvotes: 1

Related Questions