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

RE: force commit comments

From: <rbraswell_at_connected.com>
Date: 2003-11-20 22:05:55 CET

Great! Thanks!!

Ryan

-----Original Message-----
From: Ben Collins-Sussman [mailto:sussman@collab.net]
Sent: Thursday, November 20, 2003 3:43 PM
To: rbraswell@connected.com
Cc: users@subversion.tigris.org
Subject: Re: force commit comments

On Thu, 2003-11-20 at 14:38, rbraswell@connected.com wrote:
> What is the best way to force users to provide a comment when they
> commit?

Create a pre-commit hook that checks the value of the 'svn:log' property
on the pending transaction. In fact, I think that's the example we use
in the template for pre-commit hooks!

Yup:

REPOS="$1"
TXN="$2"
 
# Make sure that the log message contains some text.
SVNLOOK=/usr/local/bin/svnlook
LOG=`$SVNLOOK log -t "$TXN" "$REPOS"`
echo "$LOG" | grep "[a-zA-Z0-9]" > /dev/null || exit 1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 20 22:08:03 2003

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.