Windows的SVN挂钩 [英] SVN hooks for Windows
本文介绍了Windows的SVN挂钩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我进行了一次谷歌搜索,发现实际上没有用于Windows的SVN挂钩资源.因此,我认为我将在此处启动一个Wiki以对其进行集中.
I did a little googling and found that there isn't really a resource of SVN hooks for Windows. So I figured I'd start a wiki here to centralize it.
如果您有贡献,请务必指出:
If you contribute, please be sure to indicate:
- 挂钩的名称
- 脚本的作用
- 实际脚本
注意:我怀疑发布史诗脚本不会有用.
NOTE: I suspect posting an epic script will not be useful.
推荐答案
阻止带有空注释的提交
- 预提交
- 阻止带有空评论的提交
来源:
"c:\Program Files\Subversion\bin\svnlook.exe" log -t %2 %1 | FindStr [a-zA-Z0-9]
IF %ERRORLEVEL% EQU 0 GOTO OK
echo "Commit Comments are Required" >&2
exit 1
:OK
exit 0
这篇关于Windows的SVN挂钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文