[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: Olivier Sannier <obones_at_free.fr>
Date: 2005-07-28 17:53:45 CEST

Adrian Hoe wrote:

> On Jul 28, 2005, at 8:22 PM, Olivier Sannier wrote:
>
>> Célio Cidral Junior wrote:
>>
>>
>>> Hello!
>>>
>>> What and how could I do to prevent users from giving an empty log
>>> message before commit a new revision?
>>>
>>> Thanks!
>>>
>>>
>> Use a pre-commit hook that tests the length of the log message. There
>> are numerous examples out there.
>
>
>
> My pre-commit hook script failed:
>
> Sending README
> Transmitting file data .svn: Commit failed (details follow):
> svn: 'pre-commit' hook failed with error output:
>
> My access privileges are:
>
> -rwxr-xr-x 1 adrian users 2933 2005-07-28 23:34 pre-commit
>
> What's wrong with it?

Two things:
1. Please respons to the list, not me directly.
2. How could I know what went wrong when you don't even show the content
of your script? All I can say is that it has to return 0 for svn to
consider it sucessful. Have a look at the examples for details on how to
do this.

Cheers
Olivier

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 28 17:56:04 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.