[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Checking for empty messages on pre-commit hook on windows

From: Gustavo Guerra <gustavguerra_at_gmail.com>
Date: 2006-03-04 23:19:30 CET

Greetings,

If tried this as pre-commit-hook.bat:

set REPOS=%1
set TXN=%2
set SVNLOOK="c:\program files\subversion\bin\svnlook.exe"
set GREP="c:\program files\gnuwin32\bin\grep.exe"

%SVNLOOK$ log -t %TXN% %REPOS% > temp
%GREP% -qF "^$" temp
if errorlevel 1 goto OK
echo Empty messages are not allowed 1>&2
exit 1

:OK
exit 0

But it doesn't work, commit is always allowed. Can anyone help?

Regards,
Gustavo Guerra

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Mar 4 23:31:39 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.