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

Re: avoiding empty comments

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-10-08 09:24:26 CEST

On Oct 8, 2007, at 02:01, Luca Ferrari wrote:

> is it possible discard, or better to avoid people committing with
> messages too
> short than x chars? I know it sounds an orrible solution, but I'd
> like to
> avoid people committing with empty messages.....

Sure, you can write a pre-commit hook that enforces this restriction.
A quick search on the mailing list shows some methods here you can
use if your server is on Windows:

http://svn.haxx.se/tsvnusers/archive-2006-04/0427.shtml

On Unix-like OSes it's of course easy too. Get the log message of the
incoming transaction with "svnlook" and pipe it through "wc -c" to
count the characters.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 8 09:27:19 2007

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.