操作方法:在SVN的Repositories下,找到要配置的项目,在项目目录下找到hooks文件夹,在其下创建pre-commit.bat文件,把下面复制进去就可以了(无需重启,如果改动,保存bat文件,配置就生效)

================= bat文件内容 开始===================

@echo off
setlocal
set SVN_BINDIR=C:/Program Files/VisualSVN Server/bin
set REPOS=%1
set TXN=%2
rem check that logmessage contains at least 10 characters
svnlook log "%REPOS%" -t "%TXN%" | findstr ".........." > nul
endlocal
if %errorlevel% gtr 0 goto err
exit 0
:err
echo please input log message ,at least 10 characters(请认真填写注释信息,至少5个汉字). Commit aborted! 1>&2
exit 1

================= bat文件内容 结束===================

 

文章出处:http://blog.csdn.net/ygh_0912/article/details/9701821

相关文章:

  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-12-18
  • 2021-11-29
  • 2022-02-16
猜你喜欢
  • 2021-09-06
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-01-30
  • 2021-11-13
  • 2022-12-23
相关资源
相似解决方案