|
6 | 6 | * [RPM 安装(推荐)](#subversion1) |
7 | 7 | * [编译安装(不推荐)](#subversion2) |
8 | 8 | * [SVN 配置](#subversion3) |
9 | | - * [资料](#subversion4) |
| 9 | + * [SVN 设置提交之后可修改提交的 Message 信息](#subversion4) |
| 10 | + * [资料](#subversion5) |
10 | 11 |
|
11 | 12 | ------ |
12 | 13 |
|
|
114 | 115 |
|
115 | 116 | - 设置配置文件 |
116 | 117 | - 编辑配置文件:`vim /opt/svn/repo/conf/svnserve.conf` |
117 | | - -  |
| 118 | + -  |
118 | 119 | - 配置文件中下面几个参数(默认是注释的): |
119 | 120 | - `anon-access`: 对不在授权名单中的用户访问仓库的权限控制,有三个可选性:`write、read、none` |
120 | 121 | - `none` 表示没有任何权限 |
|
132 | 133 |
|
133 | 134 | - 添加用户 |
134 | 135 | - 编辑配置文件:`vim /opt/svn/repo/conf/passwd` |
135 | | - -  |
| 136 | + -  |
136 | 137 | - 添加用户很简答,如上图所示在配置文中添加一个格式为:`用户名 = 密码` 的即可 |
137 | 138 |
|
138 | 139 |
|
139 | 140 | - 设置用户权限 |
140 | 141 | - 编辑配置文件:`vim /opt/svn/repo/conf/authz` |
141 | | - -  |
| 142 | + -  |
142 | 143 | - 配置文件中几个参数解释: |
143 | 144 | - `r` 表示可写 |
144 | 145 | - `w` 表示可读 |
|
167 | 168 | - 在 Windows 的 svn 客户端上访问:`svn://192.168.0.110` |
168 | 169 |
|
169 | 170 |
|
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> |
171 | 181 |
|
172 | 182 | - <http://tecadmin.net/install-subversion-1-8-on-centos-rhel/> |
173 | 183 | - <http://svn.apache.org/repos/asf/subversion/trunk/INSTALL> |
|
180 | 190 | - <http://www.centoscn.com/CentosServer/ftp/2015/0622/5708.html> |
181 | 191 | - <http://blog.csdn.net/tianlesoftware/article/details/6119231> |
182 | 192 | - <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