Skip to main content

Posts

Showing posts from May, 2012

prevent SVN commit without a comment

Write the following  commands  inside the file Your  Subversion  repository /hooks/pre-commit.cmd SET REPOS=%1 SET TXN=%2  "C:\Program Files (x86)\VisualSVN Server\bin\svnlook.exe"  log %REPOS% -t %TXN% | findstr . > nul IF %ERRORLEVEL% EQU 1 GOTO ERR exit 0 :ERR echo. 1>&2 echo no commentsr: 1>&2 echo     please add comment before commit. 1>&2 echo Commit details: 1>&2 EXIT 1