2

I am trying to migrate my repository from cvs to git using cvs2git but it fails when corrupt files are found. Is there anyway I can find corrupt files in CVS beforehand?

Command used :

cvs2git --blobfile=blobfilename --dumpfile=dumpfilename --retain-conflicting-attic-files --use-cvs --fallback-encoding=ascii -vvv --username=cvs2svn RepositoryPath 

Output :

ERROR filename,v is not a valid ,v file
Mort
  • 3,379
  • 1
  • 25
  • 40
Arjun
  • 153
  • 1
  • 8

1 Answers1

1

try using /usr/bin/rcs I used it to read all the ,v files beforehand to locate any ,v files which are corrupt

MyDeveloperDay
  • 2,485
  • 1
  • 17
  • 20
  • 1
    Trouble is, this is effectively what the first stage of cvs2git does, so you're not really saving any time. Though I guess it will save you having to restart every time you find corruption as you would in cvs2git. – Mort Nov 07 '17 at 03:32
  • There are 100's of repositories which are to be converted. I want to run rcs on all these at one shot and fetch the corrupt ones :) Thanks MyDeveloperDay and Mort – Arjun Nov 12 '17 at 03:16
  • 1
    I found when running cvs2git that it wasn't until a later stage that the corruptions were found so sometimes I'd waste hours rerunning the conversion only for it to fail at the next file, so I found it easier to write a script that basic did find . -name '*,v' -print -exec rcs {} \; – MyDeveloperDay Nov 16 '17 at 19:00