[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: Brian Fohl <brian.fohl_at_gmail.com>
Date: 2005-03-30 21:13:42 CEST

Thanks! That's more along the lines of what I was looking for.

However, I forgot to mention that none of my users will be doing
command line operations. They will all be committing through Eclipse
or TortoiseSVN. Will the "You must provide a log message." show up
for them?

Thanks,
Brian

On Wed, 30 Mar 2005 11:57:21 -0700, Mark Parker <mark@msdhub.com> 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 21:16:34 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.