SVNのワークコピーといえば、サブディレクトリ毎に.svnという構成管理用のフォルダがつくられるという、とてつもなくイラッと来る仕様だったが、SVNも1.7から.svnディレクトリが、トップディレクトリだけになるという、すてきな仕様変更がはいっている。
自分としては、これまでクライアントは1.7にプライベートも仕事も切り替えていたが、SVNサーバーはまだ切り替えれていなかった。SVNサーバーにしていたさくらのVPSを移行するのを機にせっかくだから、SVNサーバー側も1.7にしてみた。1.7のスピード面の改善などの効果はサーバーもクライアントも1.7になってこそらしい。
1.7はYumでは提供されていないが、wandiscoというサイトからCentOS6用のSVN1.7インストーラーが配布されているので取得してインストールすれば、簡単に利用できる。(簡単だが会員登録が必要)
# cd /usr/local/src/
# sh svn1.7_centos6_wandisco.sh
WANdisco Subversion Installer for CentOS 6
Please report bugs or feature suggestions to opensource@wandisco.com
Gathering some information about your system…
CentOS release 6.2 (Final)
CentOS version 6.x confirmed..
Checking your system arch
Installing for x86_64
Checking to see if you already have Subversion installed via rpm…
Subversion is already installed on the system.
Do you wish to replace the version of subversion currently installed with the WANdisco version?
This action will remove the previous version from your system
[y/n]
ようは既存のSVNと置き換えるかときいているようなので→y
Removing old packages…
Adding repository configuration to /etc/yum.repos.d/
—— Installing yum repo ——
Importing GPG key
—— Installing yum repo: Done ——
Installing Subversion 1.7.4
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* epel: ftp.jaist.ac.jp
WANdisco | 951 B 00:00
WANdisco/primary | 8.8 kB 00:00
WANdisco 37/37
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package subversion.x86_64 0:1.7.4-1 will be installed
—> Package subversion-perl.x86_64 0:1.7.4-1 will be installed
—> Package subversion-python.x86_64 0:1.7.4-1 will be installed
—> Package subversion-tools.x86_64 0:1.7.4-1 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================
Package Arch Version Repository Size
===============================================================================================================
Installing:
subversion x86_64 1.7.4-1 WANdisco 1.8 M
subversion-perl x86_64 1.7.4-1 WANdisco 941 k
subversion-python x86_64 1.7.4-1 WANdisco 636 k
subversion-tools x86_64 1.7.4-1 WANdisco 562 k
Transaction Summary
===============================================================================================================
Install 4 Package(s)
Total download size: 3.9 M
Installed size: 19 M
Downloading Packages:
(1/4): subversion-1.7.4-1.x86_64.rpm | 1.8 MB 00:00
(2/4): subversion-perl-1.7.4-1.x86_64.rpm | 941 kB 00:00
(3/4): subversion-python-1.7.4-1.x86_64.rpm | 636 kB 00:00
(4/4): subversion-tools-1.7.4-1.x86_64.rpm | 562 kB 00:00
—————————————————————————————————————
Total 12 MB/s | 3.9 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : subversion-1.7.4-1.x86_64 1/4
Installing : subversion-perl-1.7.4-1.x86_64 2/4
Installing : subversion-tools-1.7.4-1.x86_64 3/4
Installing : subversion-python-1.7.4-1.x86_64 4/4
Installed:
subversion.x86_64 0:1.7.4-1 subversion-perl.x86_64 0:1.7.4-1 subversion-python.x86_64 0:1.7.4-1
subversion-tools.x86_64 0:1.7.4-1
Complete!
Would you like to install apache and the apache SVN modules?
[y/n]
ApacheようのSVNモジュールも入れるか聞いているようなので→y
Installing apache and subversion modules
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* epel: ftp.jaist.ac.jp
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package httpd.x86_64 0:2.2.15-15.el6.centos.1 will be installed
–> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos.1 for package: httpd-2.2.15-15.el6.centos.1.x86_64
–> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.1.x86_64
—> Package mod_dav_svn.x86_64 0:1.7.4-1 will be installed
–> Running transaction check
—> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
—> Package httpd-tools.x86_64 0:2.2.15-15.el6.centos.1 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================
Package Arch Version Repository Size
===============================================================================================================
Installing:
httpd x86_64 2.2.15-15.el6.centos.1 updates 813 k
mod_dav_svn x86_64 1.7.4-1 WANdisco 92 k
Installing for dependencies:
apr-util-ldap x86_64 1.3.9-3.el6_0.1 base 15 k
httpd-tools x86_64 2.2.15-15.el6.centos.1 updates 70 k
Transaction Summary
===============================================================================================================
Install 4 Package(s)
Total download size: 989 k
Installed size: 3.3 M
Downloading Packages:
(1/4): apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm | 15 kB 00:00
(2/4): httpd-2.2.15-15.el6.centos.1.x86_64.rpm | 813 kB 00:00
(3/4): httpd-tools-2.2.15-15.el6.centos.1.x86_64.rpm | 70 kB 00:00
(4/4): mod_dav_svn-1.7.4-1.x86_64.rpm | 92 kB 00:00
—————————————————————————————————————
Total 4.1 MB/s | 989 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd-tools-2.2.15-15.el6.centos.1.x86_64 1/4
Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64 2/4
Installing : httpd-2.2.15-15.el6.centos.1.x86_64 3/4
Installing : mod_dav_svn-1.7.4-1.x86_64 4/4
Installed:
httpd.x86_64 0:2.2.15-15.el6.centos.1 mod_dav_svn.x86_64 0:1.7.4-1
Dependency Installed:
apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 httpd-tools.x86_64 0:2.2.15-15.el6.centos.1
Complete!
Installation complete.
You can find the subversion configuration file for apache HTTPD at /etc/httpd/conf.d/subversion.conf
By default, the modules are commented out in subversion.conf.
To enable the modules, please edit subversion.conf and remove the # infront of the LoadModule lines.
You should then restart httpd (/etc/init.d/httpd restart)