gitcvscvs2git

what does cvs2git need from a CVS repository?


I have a large CVS repository (~ 30 GB), and to convert a single module using cvs2git it seems that all I need is:

The module's directory should, of course, be in the same relative location to CVSROOT as it is in the original repo.

I'm interested in this because I have to do the conversion work on a separate box, and I don't want to copy the entire repo if I don't have to.

First question is: Is this all that cvs2git needs for converting a single module?

Second question is: What exactly does cvs2git need from the CVSROOT directory? After many years the CVSROOT directory has accumulated a lot of cruft (it stands at about 2 GB now), and I'd like to copy only the files I need.


Solution

  • All you need is the module directory and a CVSROOT directory. The CVSROOT directory must be present, but it can be empty; e.g., it would be enough to do a "mkdir CVSROOT" at the right place.

    It is also not even required that the module directory be in the same relative location to CVSROOT as it is in the original repo. Only the part of the directory structure that you want in the resulting git repository is needed.