SVKインストール
SVKとは
異なるリポジトリ間でのマージが可能!!!
分散バージョン管理システム
SVK のインストール準備
httpd-devel パッケージをインストールしておく。
# yum install httpd-devel
足りないパッケージがあるならインストール
yum list zlib*
yum install zlib-devel.i386
cpan -i 'SVK'
yum install subversion-devel(必要ないかも)
yum install subversion-perl
yum install perl-svk
yum install perl-SVN-Mirror
(yum search perl- | grep core してみて。)
Perl モジュール SVN::Core をインストールする。
Subversion のバージョンを調べる。
$ svn --version
$ wget http://subversion.tigris.org/downloads/subversion-1.4.2.tar.bz2
$ ./configure --libdir=/usr/lib
make し、インストールする。
$ make swig-pl
$ make check-swig-pl($ LANG=C make check-swig-pl)
# make install-swig-pl
SVK のインストール
SVK のソースを入手
$ svn co http://svn.clkao.org/svk/branches/2.0-releng/
チェックアウトしたディレクトリに移動し、
$ perl Makefile.PL
不足している Perl モジュールを洗い出してくれる。
# make
# make install(# LANG=C make)
インストール確認
$ svk --version
SVK初期化
svk depotmap --init
引用元
間違ってるかもしれん・・・
svk help commands
add - Put files and directories under version control
admin - Administration tools
annotate - Display per-line revision and author info
cat - Output the file from depot
checkout - Checkout the depotpath
cleanup - Remove stalled locks
cmerge - Merge specific changes
commit - Commit changes to depot
copy - Make a versioned copy
delete - Remove versioned item
depotmap - Create or edit the depot mapping configuration
describe - Describe a change
diff - Display diff between revisions or checkout copies
help - Show help
ignore - Ignore files by setting svn:ignore property
import - Import directory into depot
info - Display information about a file or directory
list - List entries in a directory from depot
log - Show log messages for revisions
merge - Apply differences between two sources
mirror - Initialize a mirrored depotpath
mkdir - Create a versioned directory
move - Move a file or directory
patch - Manage patches
propdel - Delete a property on files or dirs
propedit - Edit a property on path
propget - Display a property on path
proplist - List all properties on files or dirs
propset - Set a property on path
pull - Bring changes from another repository
push - Move changes into another repository
resolved - Remove conflict mark from checkout items
revert - Revert changes made in checkout copies
smerge - Automatically merge all changes between branches
status - Display the status of items in the checkout copy
switch - Switch to another branch and keep local changes
sync - Synchronize a mirrored depotpath
update - Bring changes from repository to checkout copies
verify - Verify change signatures
d:balibali:20080508:1210234400 で別 リポジトリ の変更をマージするときにpatchを使う以外に方法ないんかいな、と書いたのですが、 svk であっさりできてしまいました。
実は OpenPNE の入ってる リポジトリ 3つくらい常用してるのですが、 バージョンアップ のときに毎回困っていたのがこれで解決しそうです。
では手順。 OpenPNE 2.12beta1 → 2.12beta2 の変更をマージしてみます。
まずは、 OpenPNE 本家の stable-2.12.x ブランチ をミラーします。
$ svk mirror //mirror/openpne/2.12 https://trac...
引用元