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

Re: Prevent empty commit log message

From: Adrian Hoe <mailbox_at_adrianhoe.com>
Date: 2005-07-28 18:31:13 CEST

On Jul 29, 2005, at 12:11 AM, Frank Gruman wrote:

> Just a thought since it seems you just grabbed the default and
> renamed it...
>
> Did you also make sure you either 1) have permission to commit-
> access-control.pl, or 2) edit the pre-commit and remove that line?
>
> Since your only request is to make sure the log is not empty, I'd
> at least comment it out (not remove because you may want it
> someday), and then give it a whirl.

I commented out that line with "commit-access-control.pl". It works.
When I commit with a log message, the new revision is committed. But
when I commit with an empty log message, it gives:

Transmitting file data .svn: Commit failed (details follow):
svn: 'pre-commit' hook failed with error output:

How can I modify the script so that it prompts the cause of the error
to the user?

SVNLOOK=/usr/bin/svnlook
$SVNLOOK log -t "$TXN" "$REPOS" | \
    grep "[a-zA-Z0-9]" > /dev/null || exit 1

I am not good a shell script. Has anyone modified any?

TIA

--
"If you missed the rising sun and the morning dew, don't miss the  
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com
Received on Thu Jul 28 18:33:13 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.