svn强制添加注释脚本

@echo off
set SVNLOOK="C:\Program Files\VisualSVN\bin\svnlook.exe"
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 Empty log message not allowed. Commit aborted! 1>&2
exit 1

-----------------
直接通过VisualSVN添加就可以了
其实VisualSVN也只是在hooks目录下生成个 pre-commit.cmd, 另外写个批处理或exe直接扔进去也一样, 我又想把脚本整进来了...

你可能感兴趣的:(C++,c,SVN,脚本,C#)