How to copy between Subversion repositories preserving properties but not preserving history

梦想与她 提交于 2019-12-25 06:59:57

问题


How can I copy a folder from one existing Subversion repository to another without preserving history, and in such a way that preserves relevant svn properties (e.g. preserve svn:ignore, svn:eol-style but ignore svn:mergeinfo).

To use svn export followed by svn import would not preserve svn properties, so this is not good.

We are currently experimenting with:

svnadmin dump /path/to/repo1 -r HEAD | svndumpfilter include project/to/keep | svnadmin load /path/to/repo2

But so far we have not been able to get the svnadmin load to succeed with just these partial dumps.

Does anyone know of a way to do this?


回答1:


It turned out to be a simple problem. We had to create /projec/to, but not the keep folders on the destination repository prior to reloading.



来源:https://stackoverflow.com/questions/1649143/how-to-copy-between-subversion-repositories-preserving-properties-but-not-preser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!