[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: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-03-30 23:43:29 CEST

Anybody know how to make this work if the path to your repository (and
the Subversion binaries) has an ampersand in it? E.g.
C:\Data\R&D\Subversion\repository

Scott

On Mar 30, 2005, at 1:57 PM, Mark Parker wrote:

> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 30 23:45:55 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.