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

RE: hook script error messages

From: Falk, Timo <Falk_at_neumag.de>
Date: 2004-06-04 11:29:18 CEST

> From: cmpilato@localhost.localdomain

> "Falk, Timo" <Falk@neumag.de> writes:
> > Hmm, this looks like perl... How can I set the errormessage from a
> > windows-batch-file? I can not install perl on the server....
> The Windows batch language doesn't allow redirection to stderr. I
> think you're just out of luck, here.

I searched a bit and found the solution:

----- snip -------
REM SVN pre-commit hook detects an empty log message and abort commit
REM by Marc van Kalmthout 1-6-2004
REM Output to stderr by Timo Falk 04-06-2004

set REPOS=%1
set TXN=%2

pushd D:\svn
svnlook log %REPOS% -t%TXN%|findstr .
if errorlevel 1 goto refuse

exit 0

echo Empty log message not allowed. Commit aborted! 1>&2
exit 1
----- snip -------


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 4 11:30:53 2004

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.