【问题标题】:Why cvs2git not migrating properly when Attic folder in it?为什么 cvs2git 在 Attic 文件夹中无法正确迁移?
【发布时间】:2019-08-13 08:04:38
【问题描述】:

我正在尝试将 cvs 迁移到 git,但存储库中的 Attic 文件夹没有被迁移。它是单独迁移的 README.txt 文件。

如何正确迁移其中的阁楼文件夹?

CVS:

 ls -ltr /home/user/cvs/myproject/
total 4
-r--r-----. 1 cvs cvs 374 Aug 24  2015 README.txt,v
drwxr-x---. 2 cvs cvs  25 Aug 24  2015 Attic
drwxr-x---. 3 cvs cvs  20 Aug  8 12:39 resource
drwxr-x---. 3 cvs cvs  16 Aug  8 12:39 src

迁移后:

ls -ltr myproject-cvs2git/
total 4
-rw-r--r-- 1 root root 86 Aug 13 12:42 README.txt

【问题讨论】:

  • 我的回答有帮助吗?如果它回答了您的问题,您可以接受它作为答案。获得正确答案分数的“游戏化”是推动 SO 的一部分。 :-)
  • 是的@Mort。谢谢!

标签: cvs2git cvsimport


【解决方案1】:

cvs 中的Attic 子目录用于存放不在主干 ('HEAD') 中或之前在 HEAD 中但已被删除的文件。

没有实际的Attic 子目录,您可以在相应的分支或HEAD 的先前版本中的myproject-cvs2git/path/to/file 中找到myproject/path/to/Attic/file 中的任何文件。

您应该发现cvs2git 将这些正确导入到正确的分支中。如果您检查 Attic 中的文件并查看它所在的分支,您应该能够检查 git 以查看它是否存在。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-02-20
    • 1970-01-01
    • 2020-02-27
    • 2022-12-30
    • 1970-01-01
    • 2015-12-11
    • 2014-08-22
    相关资源
    最近更新 更多