cvsimport is missing in Centos8. Unable to install. Now I tried to use fast-import. Most of the repos it is okay but it fails with some repo which has binary files. I think there is a bug in cvs-fast-export
$ cat ../repoexport.fi|git fast-import fatal: Unsupported command:
mark :11 fast-import: dumping crash report to
.git/fast_import_crash_19654 Unpacking objects: 100% (1/1), 21 bytes |21.00 KiB/s, done.
This is from the crash report
Most Recent Commands Before Crash
---------------------------------
blob
mark :1
data 30790
blob
mark :2
data 7060
blob
mark :3
data 30650
blob
mark :4
data 516323
blob
mark :5
data 355588
blob
mark :6
data 497407
blob
mark :7
data 4397056
blob
mark :8
data 807
blob
mark :9
data 299008
blob
mark :10
data 196608
blob
mark :11
* blob
Any solution to convert cvs to git?
Posting solution based on comment exchange above in original question
I suggest trying cvs2git.
@RamananT says
I Tried and unfortunately cvs2git also failed with this error
ERROR: The command 'cvs -Q -f -d :local:/home/user/path/to/cvs/repo/proj co -r1.1.1.2.1 -p -kb scripts/additions/320_str.20070501-001101.sql'
failed with exit status=-9 and no output.
I then suggested
You could try that command yourself to see if the ,v
file is somehow corrupted. The stored sql file it is a text file, but the .sq,v
file is in RCS format and you would not be able to tell by inspection if it was corrupted or not. But you could fairly easily
cvs
command that cvs2git
says fails and see if it fails for you when run manually. Orcvs2git
on that.
That would also show you if that particular file is indeed a problem.Thanks @mort, that made wonders. If it is an answer I would accept this solution. The issue is just on that file. I didn't investigate the issue but just deleted and carried on