Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
SVN::Notify::HTML::ColUserfContributed Perl DocSVN::Notify::HTML::ColorDiff(3)

       SVN::Notify::HTML::ColorDiff - Subversion activity HTML notification
       with colorized diff

       Use svnnotify in	post-commit:

	 svnnotify --repos-path	"$1" --revision	"$2" \
	   --to --handler HTML::ColorDiff [options]

       Use the class in	a custom script:

	 use SVN::Notify::HTML::ColorDiff;

	 my $notifier =	SVN::Notify::HTML::ColorDiff->new(%params);

       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

       To use SVN::Notify::HTML::ColorDiff, simply follow the instructions in
       SVN::Notify, but	when using svnnotify, specify "--handler

Instance Interface
   Instance Methods


       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.


	 $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
       CVSspam <>

To Do
       o   Add inline emphasis just on the text	that changed between two
	   lines, like this:

       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?

       David E.	Wheeler	<>

Copyright and License
       Copyright (c) 2004-2018 David E.	Wheeler. 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.32.1			  2021-11-05   SVN::Notify::HTML::ColorDiff(3)

Name | Synopsis | Description | Usage | Instance Interface | See Also | To Do | Author | Copyright and License

Want to link to this manual page? Use this URL:

home | help