As SVN admin we are asked to send an email to release managers and testers for all the commits made to the repository so that release managers can update their release sheet and testers can do the testing. This is small post-commit hook for SVN which sends out an email to release manager and testers.
#!/bin/sh REPOS="$1" REV="$2" SVNLOOK=/usr/bin/svnlook auth=`$SVNLOOK author -r $REV $REPOS` dt=`$SVNLOOK date -r $REV $REPOS | sed 's/,//g'` changed=`$SVNLOOK changed -r $REV $REPOS` log=`$SVNLOOK log -r $REV $REPOS` n=$'n' LISTID="releasemanagers@yourdomain.com testers@yourdomain.com" echo "$n $n====Status:PROJECT INTEGRATION svncommit: $DATTIM====$n Changeset [Revision ID ${REV}] by $auth.$n$n On Date $dt.$n$n With Comment $n$log.$n$n Files Changed$n $changed.$n $n" | mailx -s "New Commit in $REPOS" $LISTID
I hope this will be helpful for someone. You can also write SVN Hook to stop commits without comments