Search code examples
svnsvndumpsvndumpfilter

how to clone a part of SVN repository?


I have an SVN repository, which has many directories inside. Now I would like to clone this repository, leaving only one particular directory in it. And of course I don't need any revisions related to other directories in this new repository. How can I do it? Thanks.


Solution

  • You will need to create a dump of your repository, and filter out the directories and revisions you want. svndumpfilter is the all-purpose tool for this. See this chapter of the subversion book for an example.