安装
1.下载地址:https://www.visualsvn.com/files/VisualSVN-Server-4.0.3-x64.msi
2.开始安装:
3.安装配置:
4.Next直到完成
配置
1.配置User:
2.配置Group
3.配置Restore(仓储)
4.为仓储选择组或用户,并设置读写权限:
5.为仓储增加文件夹:
或者为仓储增加项目(仓储项目包含trunk、branches,tags):
为svn配置“必须输入备注才可以提交”
1.打开仓储并选择“所有任务”:
2.选择Pre-commit hook,并点击Edit:
3.输入以下代码并保存:
@echo off
::
:: Stops commits that have empty log messages.
::
@echo off
setlocal rem Subversion sends through the path to the repository and transaction id
set REPOS=%1
set TXN=%2 rem check for an empty log message
svnlook log %REPOS% -t %TXN% | findstr . > nul
if %errorlevel% gtr 0 (goto err) else exit 0 :err
echo. 1>&2
echo 提交信息(备注)不允许为空,请填写信息后重试 1>&2
exit 1
4.点击OK后生效(不需要重启即可生效):