SVN 提交必填备注Commit

mac2022-06-30  80

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

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

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

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

 

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

转载于:https://www.cnblogs.com/foreverfendou/p/4380093.html

最新回复(0)