SVN::N...r::Trac(3pm)

πŸ“¦
version 2.87 Β· 2 versions
  • 2.87 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 2.87 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::Notify
  • svnnotify

Go read those too, bestie, they're the whole ecosystem. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

David E. Wheeler <david@justatheory.com>


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