svn::hooks::notify(3pm) [debian man page]
SVN::Hooks::Notify(3pm) User Contributed Perl Documentation SVN::Hooks::Notify(3pm) NAME
SVN::Hooks::Notify - Subversion activity notification. VERSION
version 1.19 SYNOPSIS
This SVN::Hooks plugin sends notification emails for Subversion repository activity. It is actually a simple wrapper around the SVN::Notify module. It's active in the "post-commit" hook. It's configured by the following directives. NOTIFY_DEFAULTS(%HASH) This directive allows you to specify default arguments for the SVN::Notify constructor. NOTIFY_DEFAULTS( user_domain => 'cpqd.com.br', sendmail => '/usr/sbin/sendmail', language => 'pt_BR', ); NOTIFY_DEFAULTS(smtp => 'smtp.cpqd.com.br'); Please, see the SVN::Notify documentation to know about all the available options. NOTIFY(%HASH) This directive merges the options received with the defaults obtained from NOTIFY_DEFAULTS and passes the result to the SVN::Notify constructor. Note that neither the "repos_path" nor the "revision" options need to be specified. They are grokked automatically. NOTIFY( to => 'commit-list@example.com', with_diff => 1, ); NOTIFY( to_email_map => { '^trunk/produtos|^branches' => 'commit-list@example.com', '^conf' => 'admin@example.com', }, subject_prefix => '[REPO] ', attach_diff => 1, ); AUTHOR
Gustavo L. de M. Chaves <gnustavo@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by CPqD. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-24 SVN::Hooks::Notify(3pm)
Check Out this Related Man Page
SVN::Notify::HTML::ColorDiff(3pm) User Contributed Perl Documentation SVN::Notify::HTML::ColorDiff(3pm) Name SVN::Notify::HTML::ColorDiff - Subversion activity HTML notification with colorized diff Synopsis Use svnnotify in post-commit: svnnotify --repos-path "$1" --revision "$2" --to developers@example.com --handler HTML::ColorDiff [options] Use the class in a custom script: use SVN::Notify::HTML::ColorDiff; my $notifier = SVN::Notify::HTML::ColorDiff->new(%params); $notifier->prepare; $notifier->execute; Description This subclass of SVN::Notify::HTML sends HTML formatted email messages for Subversion activity, and if the "with_diff" parameter is specified (but not "attach_diff"), then a pretty colorized version of the diff will be included, rather than the plain text diff output by SVN::Notify::HTML. Usage To use SVN::Notify::HTML::ColorDiff, simply follow the instructions in SVN::Notify, but when using svnnotify, specify "--handler HTML::ColorDiff". Instance Interface Instance Methods output_css $notifier->output_css($file_handle); This method starts outputs the CSS for the HTML message. SVN::Notify::HTML::ColorDiff adds extra CSS to its output so that it can nicely style the diff. output_diff $notifier->output_diff($out_file_handle, $diff_file_handle); Reads the diff data from $diff_file_handle and prints it to $out_file_handle for inclusion in the notification message. The diff is output with nice colorized HTML markup. Each line of the diff file is escaped by "HTML::Entities::encode_entities()". If there are any "diff" filters, this method will do no HTML formatting, but redispatch to SVN::Notify::output_diff. See Writing Output Filters for details on filters. See Also SVN::Notify SVN::Notify::HTML <CVSspam> To Do o Add inline emphasis just on the text that changed between two lines, like this: <http://www.badgers-in-foil.co.uk/projects/cvsspam/example.html>. o Add links to To Do stuff to the top of the email, as pulled in from the diff. This might be tricky, since the diff is currently output after the message body. Maybe use absolute positioning CSS? Author David E. Wheeler <david@kineticode.com> Copyright and License Copyright (c) 2004-2009 Kineticode, Inc. Some Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2011-03-15 SVN::Notify::HTML::ColorDiff(3pm)