Ubuntu 上架设本机SVN server
Steps for setup local SVN server:
1. Add "subversion" group and add user account to this group;
2. 创建SVN repository 目录;
$ sudo mkdir /home/svn $ cd /home/svn $ sudo mkdir myproject $ sudo chown -R root:subversion myproject
3. 创建SVN repository;
$ sudo svnadmin create /home/svn/myproject
4. 赋予组成员对所有新加入文件仓库的文件拥有相应的权限:
$ sudo chmod -R g+rws myproject
如果上面这个命令在创建SVN文件仓库之前运行,你可能在后续Check in的时候遇到如下错误:
Can't open '/home/svn/myproject/db/txn-current-lock': Permission denied
5. 启动本地SVN server
$ svnserve -d -r /home/svn
6. 访问SVN
$ svn co svn://localhost/myproject