SVN::N...r::Trac(3pm)
π NAME π
SVN::Notify::Filter::Trac β bestie, this is the filter that takes your SVN::Notify output and makes it all Trac-flavoured β¨
It lives in the Perl docs, so yeah, it's a 3pm manual page. Periodt.
πΈ SYNOPSIS πΈ
Okay so first way to use it β just slide it into your post-commit hook with svnnotify:
svnnotify --p "$1" --r "$2" --to you@example.com --handler HTML \
--filter Trac --trac-url http://trac.example.com
Or if you're feeling like a main character and writing a custom script, call the class directly:
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;
Look at that. Gorgeous. No cap. π«Ά
π¦ DESCRIPTION π¦
So the whole vibe here is: this module filters SVN::Notify log message output and converts it from Trac markup into HTML. That's the entire job. It does it well. It eats. π
Which basically means β if you write your commit log messages using Trac wiki markup, and you love using SVN::Notify::HTML or SVN::Notify::HTML::ColorDiff to format your commit notifications, then this filter is literally your girl. She takes the Trac formatting sitting inside your log message and turns it into real, actual HTML.
And here's the cute part π β if you hand it an extra argument, trac_url (or the --trac-url parameter when you're running svnnotify), it'll use that to generate Trac links for revision numbers and the like inside your log messages. Links! Automatic! Iconic.
β SEE ALSO β
SVN::Notifysvnnotify
Go read those too, bestie, they're the whole ecosystem. π
π AUTHOR π
David E. Wheeler <david@justatheory.com>
π COPYRIGHT AND LICENSE π
Copyright (c) 2008-2016 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.
Fr fr, "same terms as Perl itself" β that's the license, don't come for me, I'm just the messenger π
And that's a wrap on the SVN::N...r::Trac(3pm) page, babes! π This version came from perl v5.36.0, dated 2022-11-20, and it's filed under SVN::N...r::Trac(3pm) β so if you ever forget where you read this masterpiece, now you know. Mwah! πβ¨
π¦ where this page comes from
- debian bookworm: libsvn-notify-perl 2.87-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libsvn-notify-perl 2.87-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libsvn-notify-perl 2.87-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsvn-notify-perl 2.87-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsvn-notify-perl 2.87-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms