简体   繁体   中英

SVN Export with revision history problem

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.

I found this while searching the answer above

http://daveharris.wordpress.com/2008/08/05/svn-dump-parts-of-a-repository/

Hope this helps someone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM