svn必须提交注释

svn必须提交注释
pre-commit.tmpl,然后更名pre-commit并加上执行权限:
# !/bin/sh

REPOS
= " $1 "
TXN
= " $2 "

RES
= " OK "
#  Make sure that the log message contains some text.
SVNLOOK =/ app / subversion / bin / svnlook
$SVNLOOK   log   - " $TXN "   " $REPOS "   |  egrep  " [^[:space:]]+ "   >/ dev / null  ||  unset RES
if  [  " $RES "   !=   " OK "  ]
then
    echo 
" You must input some comments for you commit "   >& 2
    
exit   1
fi

#  All checks passed, so allow the commit.
exit   0


你可能感兴趣的:(svn必须提交注释)