HOWTO: Convert CVS to SVN
(Back to DeveloperDocs)
Do steps 1 & 2 from How do I convert my CVS repository one module at a time? The steps are reproduced here for your convenience:
1) Remember to Make a backup before starting. Never run cvs2svn on a live CVS repository--always work on a copy of your repository. 2) Run cvs2svn against the modules you want converted # Copy the CVS modules into a temporary cvs repository. # This is not absolutely necessary, but it's for safety's sake. $ mkdir ~/newcvsrepo $ mkdir ~/newcvsrepo/CVSROOT # needed by cvs2svn $ cp -r /oldcvsrepo/module ~/newcvsrepo # Create a dumpfile containing the new CVS repository contents $ mkdir ~/svndump; cd ~/svndump $ cvs2svn --dump-only ~/newcvsrepo
Then create a new repository:
# svnadmin create /home/svn/repo/project_name --fs-type fsfs
We want all of our projects to use the same users/password:
# cd project_name/conf # ln -s ../../passwd . # rm svnserve.conf # ln -s ../../svnserve.conf .
Set file ownership properly:
# cd /home/svn/repo # chown -R svn:svn project_name
Import the new repository:
# svnadmin load /home/svn/repo/project_name < dump_file_name