svndumpfilter --drop-empty-revs保持填充修订 [英] svndumpfilter --drop-empty-revs keeps padding revision

查看:190
本文介绍了svndumpfilter --drop-empty-revs保持填充修订的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将一个大型svn存储库(超过10万转)拆分为几个较小的存储库. 我正在使用svndumpfilter(v1.7.2)拆分转储,并使用svndumptool/sed过滤大型转储.

We are splitting a big svn repository (100k+ revs) into several smaller repos. I am using svndumpfilter (v1.7.2) to split the dump and svndumptool/sed to filter the big dump.

一切正常,但即使我使用了"drop-empty-revs"选项,过滤后的转储中仍然存在一些填充修订".

Everything works fine, except that there are still some "padding revisions" in my filtered dump, even though I used the option "drop-empty-revs".

当我们有不到10%的无用的填充修订"时,这并不是什么大问题,但是有时,新的仓库只有几百个真正的修订,被掩埋在3万多个填充修订"中.

This is not too problematic when we have less than 10% of useless "padding revisions" but sometimes, the new repo has only a few hundreds real revisions that are buried in 30k+ "padding revisions".

这是我使用的命令及其包含的修订版本

Here is the command I use and the revisions that are included

svndumpfilter --drop-empty-revs --renumber-revs include /MyProj < MassiveOldRepo.dump > NewAllCleanRepo.dump

------------------------------------------------------------------------
r3453 | (no author) | 2005-09-29 17:27:54 +0200 (jeu., 29 sept. 2005) | 1 line

This is an empty revision for padding.
------------------------------------------------------------------------
r3454 | (no author) | 2005-09-29 17:28:27 +0200 (jeu., 29 sept. 2005) | 1 line

This is an empty revision for padding.
------------------------------------------------------------------------    

我想知道是否有一种方法在我过滤转储时不包括这些修订版(无需从已过滤的转储中手动删除它们).

要补充一点,我对svndumpfilter的使用会删除一些空修订,即第一个真实"修订之前的修订和最后一个真实"修订之后的修订.

I would add that my use of svndumpfilter drops some empty revisions, the ones before the first "real" revision and the ones after the last "real" revision.

推荐答案

经过数小时的测试,阅读svndumpfilter源代码(注释非常好,做得很好!),我意识到这些空的修订本不是来自我的过滤条件.

After hours of tests, reading the svndumpfilter source code (which is very well commented, well done!), I realize that these empty revisions don't come from my filtering.

它们已经放在我原始的转储文件中,以及日期自2005年起.

They are already lying in my original dump and date from 2005.

结论:首先检查您的数据!

Conclusion : Check your data first!!

这篇关于svndumpfilter --drop-empty-revs保持填充修订的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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