Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does cvs2git need from a CVS repository?

Tags:

git

cvs

cvs2git

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

  • the CVSROOT directory
  • the module's directory

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.

like image 534
ErikR Avatar asked Oct 19 '25 21:10

ErikR


1 Answers

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.

like image 193
mhagger Avatar answered Oct 22 '25 17:10

mhagger