[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 18:27:23 CEST

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
Received on Wed Mar 30 18:30:06 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.