移动没有历史记录的Subversion存储库 [英] Move Subversion repository without history

查看:105
本文介绍了移动没有历史记录的Subversion存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于将Subversion历史记录与版本历史记录一起移动的文章很多,但我希望做一些不同的事情.

There are a lot of posts on moving a Subversion history with version history but i am looking to do something different.

基本上,我们有一个存储库已被用作概念证明,我们希望对此进行归档.但是,我们希望使用某些代码的最新版本创建新的存储库,但保存了作者的历史记录,但这是一个全新的开始,因此我们对保留版本历史记录不感兴趣.另外,由于过去保存的二进制文件导致存储库太大,因此我们试图减小存储库的大小.

Basically we have a repository that has been used as a proof of concept and we want to archive this. However we want to create a new repository with the latest version of some the code but with author histroy saved but it's a fresh start so we aren't interested in keeping the version history. Plus we are trying to keep the repository size down as there were binaries saved in the past that is causing the repository to be far too large.

我同时也想删除一些我认为可以在其上使用转储筛选器的文件夹吗?

I will also at the same time want to remove some of the folders which I think I can use the dump filter on?

由于我想让用户信息保持签出状态,然后再签入新位置,因此不是首选.

As I want to keep user information checking out and checking back into the new place wouldn't be the preferred option.

推荐答案

要获得文件的最新版本及其作者,提交日期和提交消息,您将必须使用

To have the latest version of the files with their author, commit date and commit message, you will have to use svnadmin dump to create a dump file from your repository and svndumpfilter to filter out the revisions you don't want to keep.

使用svndumpfilter通常是一个非常令人沮丧的练习,您可能需要依赖诸如 svnfiltereddump svndumpsanitizer

Working with svndumpfilter is in general a very frustrating exercise and you might need to rely on derived (and often ill-maintained) programs such as svnfiltereddump, svndumpsanitizer, svndumpfilter2 or svndumpfilter3.

最后,您应该问自己一个问题,历史记录中的清理工作是否真的值得吗?

In the end you should ask yourself the question if the cleanup in the history is really worth the effort.

这篇关于移动没有历史记录的Subversion存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆