4

我们正在尝试从 cvs 迁移到 git。

我们的目标是 1)完美的当前代码库 2)可用的历史。如果它缺少旧分支中的条目,我们不会太在意。

两条评论:

  1. 即使使用 cvs 存储库的本地副本,也需要很长时间。试运行耗时超过 24 小时(7.5 gb cvs 代码库;P4 2.0 ghz 机器,2gb RAM,10K 驱动器。Git 将其压缩到 1.8 gb)。因为 CVS 本身占用了 99% 的 cpu,我想它是 cpu bound。有什么办法可以加快速度?

  2. 标准输出有一堆警告。哪些重要?哪些没有?

WARNING: Invalid PatchSet 5763, Tag pre-merge-pe-2-3-merge-26: conf/peTEST.conf:1.4=after, src/java/com/participate/util/XSLUtilTEST.java:1.1=before. Treated as 'before' revision 1.167.2.11 of file derived/workflow/xml/bpd.xml is tagged but not present revision 1.106 of file derived/workflow/xml/bpd.xml is tagged but not present Branch PE-2-3 already exists! Warning: commit message does not conform to UTF-8.

提前致谢

将要

4

1 回答 1

7

“git cvsimport”有许多已知的错误,不应被视为从 CVS 转换为 git 的可靠方法。我推荐cvs2svn(特别是它的cvs2git 模式),它非常灵活,可以保存你所有的 CVS 历史。我会使用 cvs2svn 的主干版本,因为它与最新发布的版本(2.3.0)相比有很多改进。

于 2010-10-26T07:24:52.520 回答