Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 797
Fred Foo Avatar asked Apr 27 '26 15:04

Fred Foo


1 Answers

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

like image 58
hometoast Avatar answered Apr 30 '26 09:04

hometoast