简体   繁体   English

为什么 cvs2git 在 Attic 文件夹中无法正确迁移?

[英]Why cvs2git not migrating properly when Attic folder in it?

I am trying to migrate cvs to git but the repository doesn't get migrated when the Attic folder in it.我正在尝试将 cvs 迁移到 git,但是存储库中的 Attic 文件夹没有被迁移。 It's migrated README.txt file alone.它仅迁移了 README.txt 文件。

How to migrate properly even Attic folder in it?如何正确迁移其中的 Attic 文件夹?

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

After Migration:迁移后:

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

Attic subdirectories in cvs are used for files that are not in the main trunk ('HEAD') or have previously been in HEAD but have been deleted. cvs中的Attic子目录用于存放不在主干 ('HEAD') 中或以前在 HEAD 中但已被删除的文件。

There is no actual Attic subdirectory, you will find any files in myproject/path/to/Attic/file in myproject-cvs2git/path/to/file in the appropriate branch or previous version of HEAD.没有实际的Attic子目录,您将在相应分支或以前版本的 HEAD 中的myproject-cvs2git/path/to/file中的myproject/path/to/Attic/file中找到任何文件。

You should find that these are correctly imported by cvs2git into the correct branch(es).您应该会发现它们已被cvs2git正确导入到正确的分支中。 If you examine a file in Attic and see what branches it is in, you should be able to check in git to see that it is there.如果您检查Attic的文件并查看它在哪些分支中,您应该能够检查 git 以查看它在那里。

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

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