如何设置SVN提交时强制添加注释
1个回答
2016-04-11 · 知道合伙人互联网行家
关注
展开全部
rem SVN强制写注释的hooks脚本(Windows)
rem 文件名是: pre-commit.bat,放到repository/hooks目录下setlocalset SVN_BINDIR="C:\Program Files\CollabNet\Subversion Server"
set REPOS=%1set TXN=%2rem check that logmessage contains at least 10 characters
%SVN_BINDIR%\svnlook log "%REPOS%" -t "%TXN%" | findstr "......" > nul
if %errorlevel% gtr 0 goto errexit 0:errecho 提交时必须填写注释(Message)! 1>&21.用SVN几个问题的解决
rem 文件名是: pre-commit.bat,放到repository/hooks目录下setlocalset SVN_BINDIR="C:\Program Files\CollabNet\Subversion Server"
set REPOS=%1set TXN=%2rem check that logmessage contains at least 10 characters
%SVN_BINDIR%\svnlook log "%REPOS%" -t "%TXN%" | findstr "......" > nul
if %errorlevel% gtr 0 goto errexit 0:errecho 提交时必须填写注释(Message)! 1>&21.用SVN几个问题的解决
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询