logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SVN::Notify::Filter::Trac - Filter SVN::Notify output in Trac format

Author

       David E. Wheeler <david@justatheory.com>

Description

       This module filters SVN::Notify log message output from Trac markup into HTML.  Essentially, this means
       that if you write your commit log messages using Trac wiki markup and like to use SVN::Notify::HTML or
       SVN::Notify::HTML::ColorDiff to format your commit notifications, you can use this filter to convert the
       Trac formatting in the log message to HTML.

       If you specify an extra argument, "trac_url" (or the "--trac-url" parameter to "svnnotify"), it will be
       used to generate Trac links for revision numbers and the like in your log messages.

Name

       SVN::Notify::Filter::Trac - Filter SVN::Notify output in Trac format

See Also

       SVN::Notify
       svnnotify

Synopsis

       Use svnnotify in post-commit:

         svnnotify --p "$1" --r "$2" --to you@example.com --handler HTML \
         --filter Trac --trac-url http://trac.example.com

       Use the class in a custom script:

         use SVN::Notify;

         my $notifier = SVN::Notify->new(
             repos_path => $path,
             revision   => $rev,
             to         => 'you@example.com',
             handler    => 'HTML::ColorDiff',
             filters    => [ 'Trac' ],
             trac_url   => 'http://trac.example.com/',
         );
         $notifier->prepare;
         $notifier->execute;

See Also