简体   繁体   English

在cvs2git转换期间如何保留CVS标签?

[英]How to preserve CVS tags during cvs2git conversion?

I'm converting a number of CVS repositories to GIT. 我正在将许多CVS存储库转换为GIT。 That works mostly but when a CVS repository used tags, these are missing in the GIT repository (branches wortk, though). 多数情况下可以使用,但是当CVS存储库使用标签时,GIT存储库中会丢失这些标签(不过分支机构wortk)。

Strangely enough the cvs2svn output shows a number of identified tags: 奇怪的是,cvs2svn输出显示了许多已标识的标签:

cvs2svn Statistics:
------------------
Total CVS Files:               199
Total CVS Revisions:          1223
Total CVS Branches:              0
Total CVS Tags:               9378 
Total Unique Tags:              67   <-----
Total Unique Branches:           0
CVS Repos Size in KB:         2787
Total SVN Commits:             785
First Revision Date:    Thu Mar  3 16:41:25 2011
Last Revision Date:     Fri Jul  3 08:11:25 2015

My template for the options can be seen here: http://paste.ubuntu.com/11919176/ 我的选项模板可以在这里找到: http : //paste.ubuntu.com/11919176/

My command sequence: 我的命令序列:

cvs2git --options=options.file
mkdir $repo.git
cd $repo.git
git init --bare
git fast-import --export-marks=../git-marks.dat < ../git-blob.dat
git fast-import --import-marks=../git-marks.dat < ../git-dump.dat

cvs2svn version is 2.3.0 cvs2svn版本是2.3.0

I've googled around for hours now, but still have no clue what's missing. 我已经在Google周围搜索了几个小时,但仍然不知道缺少什么。 Any help please? 有什么帮助吗?

Never mind. 没关系。 The conversion actually imported all tags, but I had to add an additional step to upload the tags to the server: 转换实际上导入了所有标签,但是我不得不添加一个额外的步骤将标签上传到服务器:

git push --tags -u origin

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

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