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

Re: Server side script to prevent uncommented commits

From: Mark Parker <mark_at_msdhub.com>
Date: 2005-03-30 20:57:21 CEST

Why would you install and run something as heavy as a perl interpreter
for something as simple as checking a log message?

I'd go with something like this:

----------------------------------------
@echo off

setlocal
set REPOS=%1
set TXN=%2

rem check for an empty log message
svnlook log "%REPOS%" -t "%TXN%" | findstr "." > nul
if %errorlevel% gtr 0 goto err
exit 0

:err
echo You must provide a log message. 1>&2
exit 1
----------------------------------------

No need to get overcomplicated.

ed.wittmann@fiserv.com wrote:
> I'd probably put Perl on that windows box and use it instead of a batch
> script - or you could use a vbs script.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 30 21:01:38 2005

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.