[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: <ed.wittmann_at_fiserv.com>
Date: 2005-03-30 18:29:47 CEST

I'd probably put Perl on that windows box and use it instead of a batch
script - or you could use a vbs script.

-----Original Message-----
From: brian.fohl@gmail.com [mailto:brian.fohl@gmail.com]
Sent: Wednesday, March 30, 2005 11:27 AM
To: users@subversion.tigris.org
Subject: Re: Server side script to prevent uncommented commits

Can anyone provide a batch file or something for use on Windows systems?
Unfortunately not all of us are lucky enough to use Unix platforms ;)

On Tue, 29 Mar 2005 23:18:23 -0500, Peter Kahn <pkahn@connected.com>
wrote:
>
>
>
> I have a pre-commit hook script that I use for user-based permission
> and to enforce check-in comments. The beginning part looks like this:
>
>
> REPOS="$1"
> TXN="$2"
>
> SVNLOOK=/usr/local/bin/svnlook
> PERMLOG=/home/svn/Logs/svn_permissions.log
>
> echo "---------------------------" >> ${PERMLOG} date >> ${PERMLOG}
> echo "commit attempt $REPOS $TXN" >> ${PERMLOG}
> getTransaction=`${SVNLOOK} log -t "${TXN}" "${REPOS}"` # Make sure
> that the log message contains some text.
> echo $getTransaction | grep "[a-zA-Z0-9]" > /dev/null || echo "commit
> comments are required" >&2
>
>
> ________________________________
>
> From: Bill Jackson [mailto:BJackson@tceq.state.tx.us]
> Sent: Tue 3/29/2005 2:27 PM
> To: users@subversion.tigris.org
> Subject: Server side script to prevent uncommented commits
>
>
>
> I am trying to figure out how to write a server-side script that would
> prevent commits without a comment entry being made into the revision
> log. I have tried a couple of things but with no success. Any ideas
what I can do?
>
> Thanks,
> Bill Jackson
>
> P.S. May I get the response directly CC'd to me also?

---------------------------------------------------------------------
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 18:35:44 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.