问题标签 [cvs2git]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
254 浏览

git - 如何将具有多个模块的 CVS 存储库作为单个存储库迁移到 Gitlab

我想将 CVS 存储库迁移到 Gitlab。我在一个存储库下有多个模块。我需要在 Gitlab 中作为包含所有目录的单个存储库进行迁移。

CVS 存储库:

我需要将上述模块作为单个存储库迁移到Repository.git中。如何在不丢失每个分支和标签的提交历史记录的情况下做到这一点?

注意:我使用cvs2git工具来迁移它,但它缺少 CVS 的一些提交。

我执行了以下步骤以作为单个模块进行迁移,它正在正确迁移。

  1. 百胜安装颠覆
  2. svn --版本
  3. svn co --username=guest --password="" http://cvs2svn.tigris.org/svn/cvs2svn/trunk cvs2svn-trunk
  4. cd cvs2svn-trunk
  5. mkdir cvs2git-tmp
  6. python cvs2git --blobfile=cvs2git-tmp/git-blob.dat --dumpfile=cvs2git-tmp/git-dump.dat --username=cvs2git /home/cvs/Repositories/module_1/ --fallback-encoding=UTF- 8
  7. git init --bare /root/module_1-cvs2git.git
  8. cd /root/module_1-cvs2git.git/
  9. git fast-import --export-marks=../cvs2svn-trunk/cvs2git-tmp/git-marks.dat <../cvs2svn-trunk/cvs2git-tmp/git-blob.dat
  10. git fast-import --import-marks=../cvs2svn-trunk/cvs2git-tmp/git-marks.dat <../cvs2svn-trunk/cvs2git-tmp/git-dump.dat
  11. git gc --prune=now
  12. 光盘 $HOME
  13. git clone /root/module_1-cvs2git.git
  14. cd module_1-cvs2git

我执行了相同的步骤并修改了 [6] 步骤以迁移为单个 repo,如下所示,并完成了缺少少量提交的迁移,并添加了更多带有消息“此提交由 cvs2svn 制造以创建分支”的提交。

这是作为单个存储库迁移的方式吗?或者是否有任何其他方式或工具可以迁移为单个存储库?

这里的任何输入都非常感谢。

0 投票
0 回答
99 浏览

cvs2git - CVS 到 Gitlab 迁移是否使用 cvs2git 损坏了任何存储库下的任何 jar

我想将 CVS 存储库迁移到 Gitlab。我在一个存储库下有多个模块,很少有模块中有多个 jar。我使用 cvs2git 工具来迁移它,它迁移没有任何问题,但迁移后我无法编译存储库,因为很少有 jar 损坏。为什么越来越腐败?

虽然编译构建失败,但我只是检查了损坏的罐子,

迁移后我在 CVS 和 GIT 中的 jars 如下,

胃肠道

CVS

我们在编译时访问./opt/isorelax-20030108.jar jar,但在 GIT 中失败,但 CVS 构建成功。

我在一个用 -kb 显示的罐子上运行了 CVS 状态,但另一个没有。

我们正在使用Sticky Options: -kb访问罐子,但它仍然失败......

这里有什么问题?请提供您对此的想法。

0 投票
1 回答
104 浏览

git - Empty keywords fields after migration from CVS to GIT using cvs2git

I am migrating many repositories from CVS to GIT. I used cvs gitimport first, but it didn't work properly. cvs2git works (almost) fine. Unfortunately there is one issue that worked in cvs gitimport and does not work in cvs2git (and is important for me) After migration using cvs2git, fields containing keywords (in specific files) are empty:


$Header$

$Revision$

$Author$

$Date$

"filename" Revision: 1.2


I tried different configurations of: ctx.revision_collector, ctx.revision_reader,_keyword_handling but the effect is still the same.

The main commands I used:

cvs2git --blobfile=cvs2git-tmp/${module}-tmp/git-blob.dat --dumpfile=cvs2git-tmp/${module}-tmp/git-dump.dat --username=migrationuser --encoding=ascii --encoding=utf8 --encoding=cp1250 --encoding=iso8859_2 --fallback-encoding=ascii --retain-conflicting-attic-files ${module}

git --bare init "projectname" cd "projectname" cat ../../cvs2git-tmp/git-blob.dat ../../cvs2git-tmp/git-dump.dat | git fast-import git branch -D TAG.FIXUP git gc --prune=now git repack -a -d -f

Has anyone managed to solve such a problem? Thank you in advance for your answer

0 投票
0 回答
280 浏览

python - 使用 CVS2GIT 时无法创建 Blob 和 Dump 文件

我正在尝试将代码库从 CVS 迁移到 GIT。我在 Windows 10 中使用 cvs2git 工具。我已按照 cvs2git 文档给出的说明进行操作。但是当我尝试在本地生成 blob 和转储文件时出现错误。

下面的工具我已经安装在我的机器上

  1. 智能 CVS(CVSNT 2.5.05(2010 年 3 月 26 日))
  2. 蟒蛇2.4
  3. GIT(git 版本 2.18.0.windows.1)
  4. cvs2git

遵循的步骤

  1. 从 smartCVS 工具中提取存储库并存储在我的本地 (F:/CVSMigration/OrderTrackingApplication)。提取后我可以看到以下应用程序
    • 订单跟踪工具
    • cvsroot
  2. 现在我正在尝试创建 git-blob.dat 和 git-dump.dat。我正在使用以下命令

python cvs2git --encoding=utf_8 --encoding=shift_jis --blobfile=/cvs2svn-tmp/git-blob.dat --dumpfile=/cvs2svn-tmp/git-dump.dat --username=scn789 F:/CVSMigration/OrderTrackingApplication

我收到以下错误

**$ python cvs2git --encoding=utf_8 --encoding=shift_jis --blobfile=/cvs2svn-tmp/git-blob.dat --dumpfile=/cvs2svn-tmp/git-dump.dat --username=guest F: /CVSMigration/OrderTrackingApplication/OrderTrackingTool 将临时文件写入 'c:\users\vaishali\appdata\local\temp\cvs2git-ifooen'

如果您需要恢复此转换,请务必使用 --tmpdir='c:\users\vaishali\appdata\local\temp\cvs2git-ifooen'。

----- 通过 1 (CollectRevsPass) ----- 检查所有 CVS ',v' 文件... 错误:在 'F:\CVSMigration\OrderTrackingApplication\OrderTrackingTool' 下找不到 RCS 文件!您绝对确定您将 cvs2svn 指向 CVS 存储库吗?通过 1 完成。==================================================== ========================= 错误摘要:错误:在 'F:\CVSMigration\OrderTrackingApplication\OrderTrackingTool' 下找不到 RCS 文件!您绝对确定您将 cvs2svn 指向 CVS 存储库吗?由于致命错误而退出。**

请在我做错的地方提供您的意见

问题 1:从我的本地存储库中提取 cvs2git 迁移是否正确?如果它是错误的,那么我如何在 cvs2git 命令中提供远程存储库

0 投票
0 回答
125 浏览

git - 如何在程序代码顶部注入 Git 信息?

我需要在作为 Git 存储库一部分的每个源代码的顶部注入 Git 信息。过去,我们一直致力于 CVS 存储库以维护源代码。在 CVS 中,每次提交时,CVS 信息都会添加到源文件的顶部。

是否可以在每次提交时在 Git 中添加此类信息?请建议。

谢谢

0 投票
0 回答
22 浏览

gitlab - cvs2git 导入后贡献者页面不正确

我们使用cvs2git并且一切都很好,每个提交都有历史记录,它列出了与提交相关的每个用户。

然而,贡献者页面显示只有 1 个用户完成了所有提交。它列出的执行所有提交的用户是最后一个通过 提交的用户cvs

git shortlog --no-merges -6000 -nse 显示每个用户完成的每个单独的提交

并转到贡献者页面并单击历史按钮显示每个单独的用户提交。

但摘要页面仅显示 1 完成了该项目的所有 1600 次提交。

我能做些什么来解决这个问题吗?

0 投票
2 回答
78 浏览

git - CVS 到 Centos8 中的 GIT

Centos8 中缺少 cvsimport。无法安装。现在我尝试使用快速导入。大多数存储库都可以,但是由于某些包含二进制文件的存储库而失败。我认为 cvs-fast-export 有一个错误

这是来自崩溃报告

将 cvs 转换为 git 的任何解决方案?