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

RE: Restrict the commit operation with pre-commit hook

From: Bolstridge, Andrew <andy.bolstridge_at_intergraph.com>
Date: Thu, 12 Nov 2009 10:21:35 -0000

> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2009b_at_ryandesign.com]
> Sent: Tuesday, November 10, 2009 11:07 PM
> To: S Prabhu
> Cc: users_at_subversion.tigris.org
> Subject: Re: Restrict the commit operation with pre-commit hook
>
> If your server is Windows, then you'll need to write the script
> yourself.

For Windows:

You'll need to download a copy of grep (try unixunils from sf.net) and
put this text in your pre-commit.cmd file. Job done.

        @echo off
        svnlook log -t "%2" "%1" | c:\tools\grep -c "[a-zA-z0-9]" > nul
        if %ERRORLEVEL% NEQ 1 goto DISALLOWED

        echo Please enter a check-in comment 1>&2
        exit 1

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2416953

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-12 11:22:33 CET

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.