修改 %svnhome%/hooks/pre-commit
REPOS="$1"
TXN="$2"
SVNLOOK=/usr/bin/svnlook #根据你的SVN目录而定
LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c`
if [ "$LOGMSG" -lt 1 ];
then
echo -e "请备注!" 1>&2
exit 1
fi
修改 %svnhome%/hooks/pre-commit
REPOS="$1"
TXN="$2"
SVNLOOK=/usr/bin/svnlook #根据你的SVN目录而定
LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c`
if [ "$LOGMSG" -lt 1 ];
then
echo -e "请备注!" 1>&2
exit 1
fi