没有合适的资源?快使用搜索试试~ 我知道了~
首页VisualSVN Server提交前必须写日志和修改以往日志出错解决办法
资源详情
资源评论
资源推荐

要求提交版本库时必须写日志,设置如下
VisualSVN Server “ ” “下右键项目 所有任务 》 Manage Hooks” 》选中 Pre-commit hook 然后 edit 编
辑,添加如下代码
@echo off
::
:: Stops commits that have empty log messages.
::
@echo off
setlocal
rem Subversion sends through the path to the repository and transaction id
set REPOS=%1
set TXN=%2
rem check for an empty log message
svnlook log %REPOS% -t %TXN% | findstr . > nul
if %errorlevel% gtr 0 (goto err) else exit 0
:err
echo. 1>&2
echo Your commit has been blocked because you didn't give any log message 1>&2
echo Please write a log message describing the purpose of your changes and 1>&2
echo then try committing again. -- Thank you 1>&2
exit 1
然后保存,就可以了,这个功能有多种实现方式,这是纯 DOS 命令的,他会在项目 hooks/下生成
一个 pre-commit.cmd 批处理文件

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论4