Firstly install cvs2svn, on Debian based distros you can grab it with apt:
sudo apt-get install cvs2svn
cvs2svn can also be downloaded from http://cvs2svn.tigris.org/
First we need to setup a place to work and create a CVSROOT dir else cvs2svn wont be happy.
mkdir -p ~/oldcvs/CVSROOT
mkdir ~/newsvn/
Now lets copy the CVS repo's data into ~/oldcvs/modulename
cp -r /path/to/cvs/modulename /home/user/oldcvs/modulenamefor Encodings check http://docs.python.org/library/codecs.html#standard-encodings
cvs2svn --encoding=iso8859_10 --dumpfile=/home/user/newsvn/modulename.SVN ~/oldcvs/modulename
also dumpfile didnt like the ~ in the path so full path needed here!
If all goes well you should end up with a nice report of all the revisions and their mother.
Now we need to import our newly create .SVN file into subversion, in my case I need to create a new project for it aswell like so:
svnadmin create /path/to/svn/repos/modulename
Then just import the dump into our SVN repo we created earlier
svnadmin load /path/to/svn/repos/modulename <~/newsvn/modulename.SVN
All done.
No comments:
Post a Comment