I currently block any commit to SVN that does not contain a comment using pre-commit hooks.
Now I wish to extend this so that the Commit comment must have the line
"Reviewed by: name"
Currently the pre commit hook file looks like
:: SET REPOS=%1
:: Transform forward-slashes to back-slashes for Windows
:: SET REPOS=%REPOS:/=^\%
"C:\Program Files\VisualSVN Server\bin\svnlook.exe" log -t %2 %1 | FindStr [a-zA-Z0-9]
IF %ERRORLEVEL% EQU 0 GOTO CHECKSUOFILES
echo "Commit Comments are Required" >&2
exit 1
Has anyone implemented something similar?
I am currently using SVN 1.6.0