cvsをsubversionへ移行

  • cvs2svnをダウンロード

http://cvs2svn.tigris.org/servlets/ProjectDocumentList?folderID=2976
Pythonを使うので準備

# which python

今回は入ってるので省略

  • 解凍
  • 実行

# cvs2svn --encoding=Shift_JIS --fallback-encoding=UTF-8 -s [変換先のSVN]/repos [変換元のCVS]/repos


ああ。pythonのバージョンが古い。

# /usr/bin/pythonをバックアップ
# cd /usr/local/src/
# wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
# tar zxfv Python-2.5.2.tgz
# cd Python-2.5.2
# ./configure
# make
# make install
# ln -s /usr/local/bin/python2.5 /usr/bin/python

# python -V
Python 2.5.2

あとは、vi /usr/bin/yumの1行目を編集して
バックアップしておいたほうのpythonに。

  • 再実行

# cvs2svn --encoding=Shift_JIS --fallback-encoding=UTF-8 -s [変換先のSVN]/repos [変換元のCVS]/repos/[project]

dbのバージョンが違うエラー。

  • 再再実行

# cvs2svn --fs-type=fsfs --encoding=Shift_JIS --fallback-encoding=UTF-8 -default-eol=CRLF -s [変換先のSVN]/repos [変換元のCVS]/repos/[project]
※改行コードがLFになるので、-default-eol指定

そのまま、SVNのreposにつっこんで、conf/svnserve.confを流用してOK。