移动没有历史记录的 Subversion 存储库

发布于 2024-12-20 00:35:51 字数 272 浏览 1 评论 0原文

有很多关于使用版本历史记录移动 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谈场末日恋爱 2024-12-27 00:35:51

要获得最新版本的文件及其作者、提交日期和提交消息,您必须使用 svnadmin dump 从您的存储库创建转储文件,并且svndumpfilter 过滤掉您不想保留的修订。

使用 svndumpfilter 通常是一个非常令人沮丧的练习,您可能需要依赖派生的(并且通常维护不善的)程序,例如 svnfiltereddumpsvndumpsanitizersvndumpfilter2svndumpfilter3

最后你应该问自己一个问题:历史上的清理是否真的值得付出努力。

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.

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.

泪眸﹌ 2024-12-27 00:35:51

您只需对想要继续拥有的项目进行 svn 导出,然后在新存储库上进行 svn 导入。在导入之前,只需删除您不想导入的文件。

You can simply do an svn export of the projects you want to continue to have and do on the new repository a svn import. Before the import just remove the files you don't want to import.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文