diff --git a/README.md b/README.md index 5322dc9c..f7f9277b 100644 --- a/README.md +++ b/README.md @@ -17,4 +17,4 @@ - [CentOS 网络设置](CentOS-Network-Settings.md) - [CentOS 源设置](CentOS-Extra-Packages.md) - [JDK 安装](JDK-Install.md) -- [SVN 安装](SVN-Install.md) +- [SVN 安装和配置](SVN-Install-And-Settings.md) diff --git a/SVN-Install.md b/SVN-Install-And-Settings.md similarity index 88% rename from SVN-Install.md rename to SVN-Install-And-Settings.md index f2b1f528..f33e4648 100644 --- a/SVN-Install.md +++ b/SVN-Install-And-Settings.md @@ -6,7 +6,8 @@ * [RPM 安装(推荐)](#subversion1) * [编译安装(不推荐)](#subversion2) * [SVN 配置](#subversion3) - * [资料](#subversion4) + * [SVN 设置提交之后可修改提交的 Message 信息](#subversion4) + * [资料](#subversion5) ------ @@ -114,7 +115,7 @@ - 设置配置文件 - 编辑配置文件:`vim /opt/svn/repo/conf/svnserve.conf` - - ![设置配置文件](images/SVN-Install-a-1.jpg) + - ![设置配置文件](images/SVN-Install-And-Settings-a-1.jpg) - 配置文件中下面几个参数(默认是注释的): - `anon-access`: 对不在授权名单中的用户访问仓库的权限控制,有三个可选性:`write、read、none` - `none` 表示没有任何权限 @@ -132,13 +133,13 @@ - 添加用户 - 编辑配置文件:`vim /opt/svn/repo/conf/passwd` - - ![添加用户](images/SVN-Install-a-2.jpg) + - ![添加用户](images/SVN-Install-And-Settings-a-2.jpg) - 添加用户很简答,如上图所示在配置文中添加一个格式为:`用户名 = 密码` 的即可 - 设置用户权限 - 编辑配置文件:`vim /opt/svn/repo/conf/authz` - - ![设置用户权限](images/SVN-Install-a-3.jpg) + - ![设置用户权限](images/SVN-Install-And-Settings-a-3.jpg) - 配置文件中几个参数解释: - `r` 表示可写 - `w` 表示可读 @@ -167,7 +168,16 @@ - 在 Windows 的 svn 客户端上访问:`svn://192.168.0.110` -

资料

+

SVN 设置提交之后可修改提交的 Message 信息

+ +- 下载我 hooks 文件: +- 把 pre-revprop-change 文件放在你的仓库下,比如我仓库地址是:`/opt/svn/repo/hooks` + - 编辑该文件:`vim /opt/svn/repo/hooks/pre-revprop-change` + - 把文件尾巴的这句脚本:`echo "$1 $2 $3 $4 $5" >> /opt/svn/repo/logchanges.log`,改为:`echo "$1 $2 $3 $4 $5" >> /你的仓库地址/logchanges.log` + - 你在该目录下也可以看到一个文件 `pre-revprop-change.tmpl`,这个其实就是 svn 提供给你模板,其他的那些你有兴趣也可以研究下 + + +

资料

- - @@ -180,4 +190,5 @@ - - - -- \ No newline at end of file +- +- 设置可编辑提交信息: \ No newline at end of file diff --git a/images/SVN-Install-a-1.jpg b/images/SVN-Install-And-Settings-a-1.jpg similarity index 100% rename from images/SVN-Install-a-1.jpg rename to images/SVN-Install-And-Settings-a-1.jpg diff --git a/images/SVN-Install-a-2.jpg b/images/SVN-Install-And-Settings-a-2.jpg similarity index 100% rename from images/SVN-Install-a-2.jpg rename to images/SVN-Install-And-Settings-a-2.jpg diff --git a/images/SVN-Install-a-3.jpg b/images/SVN-Install-And-Settings-a-3.jpg similarity index 100% rename from images/SVN-Install-a-3.jpg rename to images/SVN-Install-And-Settings-a-3.jpg