CVS2GIT-转换:错误“标记...未声明".在运行git fast-import时 [英] CVS2GIT- Conversion: Error "mark ... not declared" when running git fast-import

查看:126
本文介绍了CVS2GIT-转换:错误“标记...未声明".在运行git fast-import时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cvs2gitgit fast-import将旧的cvs存储库迁移到git.导出似乎工作正常,至少我没有注意到任何错误消息.但是,当我尝试使用

I'm trying to migrate an old cvs repository to git using cvs2git and git fast-import. The Export seemed to work fine, at least i did not notice any error messages. However, when i try to import the Dump files into my git repository with

git fast-import --export-marks=C:\temp\git-marks.dat < C:\temp\git-dump.dat

我收到以下错误:

致命:标记:52未声明

fatal: mark :52 not declared

这是生成的崩溃报告:

fast-import crash report:
    fast-import process: 17584
    parent process     : 1
    at 2019-01-09 14:52:10 +0000

fatal: mark :52 not declared

Most Recent Commands Before Crash
---------------------------------
  commit refs/heads/master
  mark :1000000000
  committer loc\drst <> 1299577179 +0000
  data 16
* M 100644 :52 build.properties

Active Branch LRU
-----------------
    active_branches = 1 cur, 5 max

  pos  clock name
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1)      0 refs/heads/master

Inactive Branches
-----------------
refs/heads/master:
  status      : active loaded dirty
  tip commit  : 0000000000000000000000000000000000000000
  old tree    : 0000000000000000000000000000000000000000
  cur tree    : 0000000000000000000000000000000000000000
  commit clock: 0
  last pack   : 


Marks
-----
  exported to C:\temp\git-marks.dat

-------------------
END OF CRASH REPORT

那么标记:52是什么意思,我怎么能找出这是怎么回事?

So what does mark :52 mean and how can i find out whats wrong about that?

推荐答案

好吧,我的错误是我显然需要导入,而不是导出以前创建的标记file:P以下语句似乎运行良好:

Ok, well my mistake was that i obviously needed to import, not export the previously created marks file :P The following statement seemed to worked perfectly:

git fast-import --import-marks=C:\temp\git-marks.dat < C:\temp\git-dump.dat

这篇关于CVS2GIT-转换:错误“标记...未声明".在运行git fast-import时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆