仅将某些更改列表移动到新的 SVN 服务器
我想迁移到新的 SVN 服务器。
在我当前的服务器上,我有很多非常旧的东西,我并不真正关心 - 我想将其移动到新服务器,但不移动任何历史记录。我那里有大量图像和内容,这将使我的夜间备份比需要的大得多。
对于这段代码,我假设我只是从旧服务器导出它,删除不应该存在的图像等,然后签入新服务器。
我确实有一些代码,我确实想保留其完整的历史记录。
如何仅对存储库中的部分项目进行转储?
谢谢
I want to move to a new SVN server.
On my current server I have a load of really old stuff in there that I don't really care about - I want to move it to the new server but not move any of the history. I have a load of images and stuff in there that will make my nightly backup a lot bigger than it needs to be.
For this code I assume I'll just export it from the old server, delete the images and so on that shouldn't be in there then check into the new server.
I do have some code in there that I do want to retain the full history for.
How do I go about doing a dump for only some of the projects in the repository?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
svndumpfilter 是通用答案对于这个问题。我自己从未使用过它,所以我无法为您提供任何语法示例,但本书的章节至少可以帮助您入门。
svndumpfilter is the general-purpose answer to that question. I've never used it myself yet so I can't give you any syntax examples, but the book chapter may get you at least started.
我刚刚经历过这个并遇到了很多戏剧。这里介绍了整个过程,可能会减轻您的痛苦: http://www.troyhunt.com/2009/12/black-art-of-splitting-subversion.html
I've just gone through this and ran into a number of dramas. The whole process is covered here and might save you some grief: http://www.troyhunt.com/2009/12/black-art-of-splitting-subversion.html