I need to provide our clients with a dump of a single sub directory in our SVN repository along with the revision history if possible. I know that you can do a dump but I don’t believe you can tell it to isolate a single sub directory in the repo. If I export i’ll only get the head or a single revision, this is not what I need. Is there anyway to achieve this, or is this just not supported?
Edit:
What I need is all the revision history and the changes to every file.
Edit:
It looks like rmeador’s solution worked with one caveat. I was getting a cryptic error about a revision or file doesn’t exist when executing the load command into a blank repo. svnadmin load seemed to get confused because creation of the ‘trunk’ directory got filtered out by svndumpfilter. Therefore creating ‘trunk/MySubDirecory’ fails. Doing a svn add/commit manually for ‘trunk’ on the target empty repo and then doing a ‘svnadmin load’ solved this problem.
It is possible to filter a dump file to only contain one subdirectory using svndumpfilter. Such a dump file can then be loaded into a new repository and it will work perfectly fine, as if the repo had always been that directory.