[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Reject cvs commits with empty log messages

From: Jim.Hyslop
Subject: RE: Reject cvs commits with empty log messages
Date: Wed, 2 Jun 2004 09:41:15 -0400

Ivan Ivanov wrote:
> So my quiestions are
> 1) What regular expression should stay in my verifymsg
> file
To expand on Mark's reply a little: the regular expression is used to
determine which script, if any, will be run, based on the directory you're
checking in. For example, if you had:


then, when you checked in anything in the projectX directory, the script will run.

> 2) How should I make the check for an empty log
> message? I know it could done in a .sh file for
> example.
See Mark's example.

Unfortunately, though, you may be wasting effort. There's nothing to stop
someone from issuing the command:

cvs ci -m blah


cvs ci -m"Making changes"

The problem is, the script cannot check for *meaningful* log entries. Only
education and special tools (rubber hoses, baseball bats, etc.) can do that
(Just kidding about the tools!).

> 3) Where should I place this .sh file in my
> filesystem?
As Mark said, anywhere you want. The verifymsg file tells CVS precisely
where to find it.

Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (
Columnist, C/C++ Users Journal (

reply via email to

[Prev in Thread] Current Thread [Next in Thread]