[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: Peter Kahn <pkahn_at_connected.com>
Date: 2005-03-30 06:18:23 CEST

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