一、客户端设置
1、找到您的项目位置,右击选择TortoiseSVN==>Properties
![](https://img.haomeiwen.com/i1657676/13d829fee4d830af.png)
2、选择New==>Other
![](https://img.haomeiwen.com/i1657676/fd49e98a9e4534eb.png)
3、选择tsvn:logminsize 并设置Property value
Property value 是您需要设置限制的字数,服务器设置为10个字,所以大家最少要设置10个字以上,不然会提交失败
![](https://img.haomeiwen.com/i1657676/cc626385bc4f8f8c.png)
二、服务器设置
![](https://img.haomeiwen.com/i1657676/aa06ed97f1524fe3.png)
![](https://img.haomeiwen.com/i1657676/ae60f2f8ca8490ad.png)
@echo off
setlocal
set REPOS=%1
set TXN=%2
rem check that logmessage contains at least 10 characters
"C:\Program Files\VisualSVN Server\bin/svnlook" log "%REPOS%" -t "%TXN%" | findstr ".........." > nul
if %errorlevel% gtr 0 goto err
exit 0
:err
echo 提交必须写10个字以上的日志!>&2
exit 1
“C:\Program Files\VisualSVN Server\bin/”是SVN服务器的安装目录,主要是为了找到svnlook.exe文件
网友评论