SVN::Hooks::CheckLog(3pm)

SVN::Hooks::CheckLog3pm

Check log messages in commits.

Usage

This SVN::Hooks plugin allows one to check if the log message in a 'svn commit' conforms to a Regexp.

It's active in the "pre-commit" hook.

It's configured by the following directive.

Check_log(regexp[, message])

The REGEXP argument must be a qr/quoted regexp/ which must match the commit log messages. If it doesn't, then the commit is aborted.

The MESSAGE argument is an optional error message that is shown to the user in case the check fails.

        CHECK_LOG(qr/.../ => "The log message cannot be empty!");
        CHECK_LOG(qr/^\[(prj1|prj2|prj3)\]/
                  => "The log message must start with a project tag.");

Version

version 1.36

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–11
  6. 12–13

Author

Gustavo L. de M. Chaves <[email protected]>

From libsvn-hooks-perl 1.36-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.