保存为:utf-8格式, 不然的话老报“权限配置不正确”的错误
commit强制写日志:
版本库中hooks目录下,新建文本文件,改名为 pre-commit.bat , 文件内容为:
setlocal
set REPOS=%1
set TXN=%2
rem check that logmessage contains at least 10 characters
svnlook log "%REPOS%" -t "%TXN%" | findstr ".........." > nul
if %errorlevel% gtr 0 goto err
exit 0
:err
echo 提交必须写日志,长度不能少于10个字符! 1>&2
exit 1