简体   繁体   English

git cvsimport 缺少标签

[英]git cvsimport missing tags

I'm migrating huge CVS repository into git and I've figured out that not all tags were migrated ( the history looks ok ).我正在将巨大的 CVS 存储库迁移到 git 中,我发现并不是所有的标签都被迁移了(历史看起来没问题)。 Probably it's because the Tags in CVS were created not on the whole repository, but on particular folders, and in addition some files in CVS history are dead.可能是因为 CVS 中的标签不是在整个存储库上创建的,而是在特定文件夹上创建的,此外 CVS 历史记录中的一些文件已经死了。

git cvsimport -p -x -v -a -i -d:pserver:ysn@uaap01:/mitarepo -CF:/GitImport Libs/WP/Include/drivers cvs_direct initialized to CVSROOT /mitarepo cvs rlog: Logging Mitalib/WP4000/Include/drivers * UNKNOWN LINE * Branches: Branch WP100_1_2_0_CANopen erroneously stems from itself -- changed ancestor to origin Branch origin does not exist: * UNKNOWN LINE * Branches: Skipping WP100_1_2_0_CANopen * UNKNOWN LINE * Branches: * UNKNOWN LINE * Branches: git cvsimport -p -x -v -a -i -d:pserver:ysn@uaap01:/mitarepo -CF:/GitImport Libs/WP/Include/drivers cvs_direct initialized to CVSROOT /mitarepo cvs rlog: Logging Mitalib/WP4000/Include/drivers * UNKNOWN LINE * Branches: Branch WP100_1_2_0_CANopen erroneously stems from itself -- changed ancestor to origin Branch origin does not exist: * UNKNOWN LINE * Branches: Skipping WP100_1_2_0_CANopen * UNKNOWN LINE * Branches: * UNKNOWN LINE * Branches:

I tried to import only specific folder from CVS, but the Tags are still missing我试图从 CVS 中只导入特定的文件夹,但标签仍然丢失

From all CVS Tags only API_4_51 and RE_OS_API_3_9 were imported, the rest was not.从所有 CVS 标签中只导入了 API_4_51 和 RE_OS_API_3_9,其余的没有。 Is there a way to diagnose and fix this issue?有没有办法诊断和解决这个问题? By the way I can checkout any necessary files from CVS by Tags without a problem and commit 1.3 was migrated to Git normally.顺便说一句,我可以毫无问题地从 CVS 中检出任何必要的文件,并且提交 1.3 已正常迁移到 Git。 在此处输入图像描述

I've had good luck with a huge repo with all manner of tags using cvs2git https://github.com/mhagger/cvs2svn我很幸运,使用cvs2git https://github.com/mhagger/cvs2svn获得了一个带有各种标签的巨大回购协议

( cvs2git is part of cvs2svn . If you see links to cvs2git.tigris.org the above GitHub link is the same project in its new home.) cvs2git是 cvs2svn 的一部分。如果你看到指向cvs2svn的链接,上面的 GitHub 链接是它新家的同一个项目。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM