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

RE: Re: Prevent empty commit log message

From: GOVAERTS Lieven <Lieven.GOVAERTS_at_post.be>
Date: 2005-07-28 18:41:24 CEST

If you want to log messages to the client, you have to redirect your
output to stderr,

Like this:


echo "The commit message was not supplied or was too short" >&2





From: Adrian Hoe [mailto:mailbox@adrianhoe.com]
Sent: donderdag 28 juli 2005 18:31
To: Subversion List
Subject: Re: Prevent empty commit log message


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

Just a thought since it seems you just grabbed the default and renamed

Did you also make sure you either 1) have permission to
commit-access-control.pl, or 2) edit the pre-commit and remove that

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 log -t "$TXN" "$REPOS" | \

   grep "[a-zA-Z0-9]" > /dev/null || exit 1


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



"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
This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies.

Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing ontvangen heeft, gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het bericht vervolgens te verwijderen.

Ce message est uniquement destiné aux destinataires indiqués et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le supprimer.
Received on Thu Jul 28 18:47:47 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.