Friday, October 17, 2008

Move your projects from CVS to SVN

If you want to migrate all your projects from CVS to SVN and maintain the same structure, just install cvs2svn and run it for each of your projects:

# SVN_DIR -> Folder where the svn is going to be
# CVS_DIR -> Folder with the cvs stuff
# Project -> Name of each project
# create the target directory if it doesn't exist
mkdir -p SVN_DIR
# run this command for each project
cvs2svn -s SVN_DIR --existing-svnrepos CVS_DIR/Project \
--trunk=Project/trunk \
--branches=Project/branches \
--tags=Projet/tags \