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

Re: How to prevent empty log messages?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Mon, 16 Jun 2008 12:08:31 -0400

On Mon, Jun 16, 2008 at 12:02 PM, Robert Dailey <rcdailey_at_gmail.com> wrote:
> Hi,
>
> I'm sending this message to both the TortoiseSVN and SVN mailing lists
> because I'm not sure if this is a client side or server side issue.
>
> I want to setup the subversion server I have to not allow empty log
> messages. I read a few (very old) archived messages on the TortoiseSVN
> mailing list when TSVN was still around version 1. The old posts I
> read spoke of TortoiseSVN actually enforcing the "minimum length" for
> log messages. I've also heard of the server-side implementing a
> post-commit (maybe pre commit?) hook for this as well. I'm not sure
> which approach to take, assuming both options are open. I imagine this
> will probably have to be server-side, since I don't want to have
> everyone have to setup their client.

The tsvn:minlogsize property is only checked by TSVN. To make sure
that all commits follow your rules, you have to implement it as a hook
script on the server.

> If anyone could show me how to prevent empty log messages, I'd
> appreciate it. If this requires a post(pre)-commit hook, could someone
> post the code for that and tell me where to put it? Thanks.

The default pre-commit hook script template (pre-commit.tmpl in your
repository's hooks directory) demonstrates exactly this. There are
also numerous examples findable via Google and the SVN Users list
archives.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-06-16 18:08:39 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.