NAME

SVN::Notify::Config - Config-driven Subversion notification

VERSION

This document describes version 0.08 of SVN::Notify::Config, released July 13, 2006.

SYNOPSIS

Set this as your Subversion repository's hooks/post-commit:

#!/usr/bin/perl -MSVN::Notify::Config=$0
--- #YAML:1.0
'':
  PATH: "/usr/bin:/usr/local/bin"
'/path':
  handler: HTML::ColorDiff
  to: root@localhost
'/path/ignored':
  handler: ~
'/path/snapshot':
  fork: 1
  handler: Snapshot
  to: "/tmp/tarball-%{%Y%m%d}-${revision}.tar.gz"
'/path/multitarget':
  - to: alice@localhost
  - to: bob@localhost
  - to: root@localhost
'/path/tags':
  handler: Mirror
  to: '/path/to/another/dir'
  tag-regex: "RELEASE_"

Alternatively, use a config file inside the repository:

#!/usr/bin/perl -MSVN::Notify::Config=file://$1/svnnotify.yml

DESCRIPTION

This module is a YAML-based configuration wrapper on SVN::Notify. Any option of the base SVN::Notify or any of its subclasses can be rendered in YAML and will be used to perform the appropriate task. In essence, your hook script is your configuration file, so it can be a very compact way to use SVN::Notify.

AUTHORS

Autrijus Tang <autrijus@autrijus.org>

SEE ALSO

SVN::Notify

COPYRIGHT

Copyright 2004 by Autrijus Tang <autrijus@autrijus.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html