I'm a newcomer in SVN and I'm trying to write a pre-commit hook that checks commit messages on the pattern ^ABC-[0-9]+|^CONFIG:+|^MERGE:
. I am using this code:
if [ `/svn/bin/svnlook log -t "$TXN" "$REPOS" | egrep -v "^ABC-[0-9]+|^CONFIG:+|^MERGE:"` ];
then
echo ""
exit 1
fi;
But it does not work as I need and CLs with messages like "Test- test" can be commited anyway. What is the problem?
Thank you in advance!