Skip to content

Commit 085f593

Browse files
committed
2016-02-07完善SVN配置
1 parent b91777f commit 085f593

5 files changed

Lines changed: 18 additions & 7 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
- [CentOS 网络设置](CentOS-Network-Settings.md)
1818
- [CentOS 源设置](CentOS-Extra-Packages.md)
1919
- [JDK 安装](JDK-Install.md)
20-
- [SVN 安装](SVN-Install.md)
20+
- [SVN 安装和配置](SVN-Install-And-Settings.md)

SVN-Install.md renamed to SVN-Install-And-Settings.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* [RPM 安装(推荐)](#subversion1)
77
* [编译安装(不推荐)](#subversion2)
88
* [SVN 配置](#subversion3)
9-
* [资料](#subversion4)
9+
* [SVN 设置提交之后可修改提交的 Message 信息](#subversion4)
10+
* [资料](#subversion5)
1011

1112
------
1213

@@ -114,7 +115,7 @@
114115

115116
- 设置配置文件
116117
- 编辑配置文件:`vim /opt/svn/repo/conf/svnserve.conf`
117-
- ![设置配置文件](images/SVN-Install-a-1.jpg)
118+
- ![设置配置文件](images/SVN-Install-And-Settings-a-1.jpg)
118119
- 配置文件中下面几个参数(默认是注释的):
119120
- `anon-access`: 对不在授权名单中的用户访问仓库的权限控制,有三个可选性:`write、read、none`
120121
- `none` 表示没有任何权限
@@ -132,13 +133,13 @@
132133

133134
- 添加用户
134135
- 编辑配置文件:`vim /opt/svn/repo/conf/passwd`
135-
- ![添加用户](images/SVN-Install-a-2.jpg)
136+
- ![添加用户](images/SVN-Install-And-Settings-a-2.jpg)
136137
- 添加用户很简答,如上图所示在配置文中添加一个格式为:`用户名 = 密码` 的即可
137138

138139

139140
- 设置用户权限
140141
- 编辑配置文件:`vim /opt/svn/repo/conf/authz`
141-
- ![设置用户权限](images/SVN-Install-a-3.jpg)
142+
- ![设置用户权限](images/SVN-Install-And-Settings-a-3.jpg)
142143
- 配置文件中几个参数解释:
143144
- `r` 表示可写
144145
- `w` 表示可读
@@ -167,7 +168,16 @@
167168
- 在 Windows 的 svn 客户端上访问:`svn://192.168.0.110`
168169

169170

170-
<h2 id="subversion4">资料</h2>
171+
<h2 id="subversion4">SVN 设置提交之后可修改提交的 Message 信息</h2>
172+
173+
- 下载我 hooks 文件:<http://pan.baidu.com/s/1c1jtlmw>
174+
- 把 pre-revprop-change 文件放在你的仓库下,比如我仓库地址是:`/opt/svn/repo/hooks`
175+
- 编辑该文件:`vim /opt/svn/repo/hooks/pre-revprop-change`
176+
- 把文件尾巴的这句脚本:`echo "$1 $2 $3 $4 $5" >> /opt/svn/repo/logchanges.log`,改为:`echo "$1 $2 $3 $4 $5" >> /你的仓库地址/logchanges.log`
177+
- 你在该目录下也可以看到一个文件 `pre-revprop-change.tmpl`,这个其实就是 svn 提供给你模板,其他的那些你有兴趣也可以研究下
178+
179+
180+
<h2 id="subversion5">资料</h2>
171181

172182
- <http://tecadmin.net/install-subversion-1-8-on-centos-rhel/>
173183
- <http://svn.apache.org/repos/asf/subversion/trunk/INSTALL>
@@ -180,4 +190,5 @@
180190
- <http://www.centoscn.com/CentosServer/ftp/2015/0622/5708.html>
181191
- <http://blog.csdn.net/tianlesoftware/article/details/6119231>
182192
- <http://www.scmeye.com/thread-419-1-1.html>
183-
- <http://m.blog.csdn.net/article/details?id=7908907>
193+
- <http://m.blog.csdn.net/article/details?id=7908907>
194+
- 设置可编辑提交信息:<http://stackoverflow.com/questions/692851/can-i-go-back-and-edit-comments-on-an-svn-checkin>

0 commit comments

Comments
 (0)