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

Re: How to force comments on SVN commit

From: Dave Peters <gameslover987_at_yahoo.com>
Date: Thu, 28 May 2009 13:08:22 -0700 (PDT)

I got the following errors when I commit the changes:

Error: Commit failed (detailed follow):
Error: MERGE request failed on 'Support/code/Dev'
Error: 'pre-commit' hook failed with error output

*************************
Here is the pre-commit file:
!/bin/sh

REPOS="$1"
TXN="$2"

SVNLOOK=/usr/bin/svnlook

LOGMSG=`$SVNLOOK log -t $TXN $REPOS | grep [a-zA-Z0-9] | wc -c`

if [ "$LOGMSG" -lt 5 ]; then
echo -e Please provide a meaningful comment when committing changes.. 1>&2
exit 1
fi

commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg || exit 1

exit 0

Thanks.
-DP

--- On Wed, 5/27/09, David Weintraub <qazwart_at_gmail.com> wrote:

> From: David Weintraub <qazwart_at_gmail.com>
> Subject: Re: How to force comments on SVN commit
> To: "Dave Peters" <gameslover987_at_yahoo.com>
> Cc: users_at_subversion.tigris.org
> Date: Wednesday, May 27, 2009, 2:51 PM
> Look at "svnlook -t $TXN
> log" in your trigger. This will be the commit log
> comment. If it is blank, fail the trigger.
>
> On Wed, May 27, 2009 at 2:47 PM,
> Dave Peters <gameslover987_at_yahoo.com>
> wrote:
>
> Is there a way to force users to
> provide a comment when they commit?
>
>
>
> Thanks.
>
>
>
> -DP
>
>
>
> ------------------------------------------------------
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2355894
>
>
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>
>
>
>
> --
> David Weintraub
> qazwart_at_gmail.com
>
>

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-28 22:09:42 CEST

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.