翻翻过去那场雪
将以下代码复制到一个txt文档中,放到Repositories\XXX\hooks目录下(其中XXX为库名),并将这个txt文档改名为pre-commit.bat ,就可以对这个XXX库进行限制,此hook限制字数为10个字。@echorem SVN强制写注释的hooks脚本(Windows)rem 文件名是: pre-commit.bat,放到repository/hooks目录下setlocalset SVN_BINDIR="D:\Program Files\VisualSVN Server\bin"set REPOS=%1set TXN=%2rem 检查是否提交日志%SVN_BINDIR%\svnlook log -t "%TXN%" "%REPOS%" | findstr "..............." > nulif %errorlevel% gtr 0 goto nolog:nologecho Log (Message) is an important information, tracking document must be input, not the input meaningless characters, length shall not be less than 15 characters! >&2exit 1