【转】cvs2svn 把CVS档案库转换为SVN档案库

时间:2023-03-09 07:42:02
【转】cvs2svn 把CVS档案库转换为SVN档案库

转载地址:http://jackdown.blog.sohu.com/66646130.html

在linux下的操作
1).安装
下载:Python 2.0  
地址:http://www.python.org/
说明:执行csv2svn中Python 脚本所需要的环境
安装:
   cd /usr/software
   tar -zxf Python-2.4.1.tgz
   cd Python-2.4.1
   ./configure
   make
   make install
   make clean

下载:RCS
地址:http://www.cs.purdue.edu/homes/trinkle/RCS/
说明:用来读CVS档案库
安装:
   cd /usr/software
   tar -zxf rcs-5.7.tar
   cd rcs-5.7
   ./configure
   make
   make install
   make clean
注意:make操作只能由非root用户执行
//我下载下来没有安装成功
下载:GNU 工具
地址:http://www.gnu.org/software/coreutils/
说明:可能FreeBSD系统已经有了
安装:
   cd /usr/software
   tar -zxf coreutils-5.2.1.tar.gz
   cd coreutils-5.2.1
   ./configure
   make
   make install
   make clean

下载:cvs2svn
地址:http://cvs2svn.tigris.org/
说明:
安装:
   cd /usr/software
   tar -zxf cvs2svn-1.2.1.tar.gz
   cd cvs2svn-1.2.1
   make install
   make clean

2).使用cvs2svn把CVS档案库转换为SVN档案库

//启动cvs:
cvs -d /path/to/cvs/repos init

  1. 准备仓库

    将仓库拷出一份,建立必要的CVSROOT目录,删除不想转换的文件……

  2. 生成dumpfile

    cvs2svn --dumpfile=test.dump --use-cvs --encoding=gb2312 /path/to/cvs/repos

  3. 创建svn仓库

    svnadmin create /path/to/svn/repos

  4. 导入dumpfile

    svnadmin load /path/to/svn/repos < test.dump