9 <div class="page-header">
14 $ sudo apt-get install subversion libapache2-svn
15 $ sudo vim /etc/apache2/mods-available/dav_svn.conf
22 SVNParentPath /home/linguofeng/repository/svn/
28 $ svnadmin create test
29 $ sudo chown -R www-data test // 更改用户组可通过apache2访问
30 $ sudo chmod -R g+rws test // 可读写
35 <div class="page-header">
38 <h4><small>2.1</small> 修改svn diff为vim diff</h4>
40 $ sudo vim /usr/local/bin/svndiff
46 # SVN diff命令会传入两个文件的参数
53 $ sudo chmod 777 /usr/local/bin/svndiff
54 $ vim ~/.subversion/config
57 diff-cmd = /usr/local/bin/svndiff
60 <p>参考:https://help.ubuntu.com/community/Subversion</p>
63 <div class="page-header">
66 <h4><small>3.1</small> 查看服务器列表</h4>
68 $ svn ls svn://127.0.0.1/svn
71 <h3><small>3.2</small> 检出</h3>
73 $ svn checkout svn://127.0.0.1/svn