Re: Error Running cvs2git tool

Michael Haggerty <[email protected]> Tue, 17 May 2016 15:35:49 +0200
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
On 05/04/2016 11:11 AM, rohit pathak wrote:
> I am trying to run the cvs2git tool to migrate a CVS repository. The
> repository size is 6GB and I am running the tool on a machine with 8GB
> RAM and 40GB hard disk space.
> 
> The tool has been run with the following options:
> ./cvs2git --blobfile=cvs2svn-tmp/git-blob.dat
> --dumpfile=cvs2svn-tmp/git-dump.dat --retain-conflicting-attic-files
> --use-cvs --fallback-encoding=ascii -vvv --username=cvs2svn
> /home/patro12/ >conversion.log
> 
> I get the following in pass4 and the tool stops running.
> 6550.446174: Time for pass3 (CollateSymbolsPass): 0.577 seconds.
> 6550.447680: Deleting cvs2svn-tmp/statistics-02.pck
> 6550.447811: Deleting cvs2svn-tmp/symbol-statistics.pck
> 6550.455910: ----- pass 4 (FilterSymbolsPass) -----
> 6552.767110: Filtering out excluded symbols and summarizing items...
> 6552.767454: /home/patro12/CVSROOT/checkoutlist,v
> 6552.767771: Running command ['cvs', '-Q', '-R', '-f', '-d',
> ':local:/home/patro12', 'co', '-r1.1', '-p', '-kb', 'CVSROOT/checkoutlist']
> 
> In the tmp folder I get a 0kb blob file and no dump file. I was
> initially running the tool using cvs nad got these errors and then I
> installed cvsnt and used it and got the same error. What might I be
> doing wrong? Can you please guide.

Maybe cvs is not installed correctly? What happens if you try running
the above command manually; i.e.,

    cvs -Q -R -f -d ':local:/home/patro12' co -r1.1 -p -kb
CVSROOT/checkoutlist

? Things to note: could it be that you have a different "cvs" in your
path (e.g., a wrapper script or something)? Does the "cvs" command wait
for input at the terminal or something?

To be sure that cvs2git is using the correct "cvs" executable, you can
pass it the "--cvs=PATH" option with the full path to the "cvs" binary.

If your repository was never written to by CVSNT, you could also try
using cvs2git's internal code for checking out the old revisions (it is
also a lot faster) by using the "--use-external-blob-generator" option.

It also seems strange that you are including CVSROOT in your conversion.
Normally you would want to start the conversion one level deeper, in a
project directory. The stuff under CVSROOT is probably not useful to you
after your conversion to Git.

Michael

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=3172633

To unsubscribe from this discussion, e-mail: [[email protected]].