Search code examples
svnsparse-checkout

Can you do a partial checkout with Subversion?


If I had 20 directories under trunk/ with lots of files in each and only needed 3 of those directories, would it be possible to do a Subversion checkout with only those 3 directories under trunk?


Solution

  • Subversion 1.5 introduces sparse checkouts which may be something you might find useful. From the documentation:

    ... sparse directories (or shallow checkouts) ... allows you to easily check out a working copy—or a portion of a working copy—more shallowly than full recursion, with the freedom to bring in previously ignored files and subdirectories at a later time.