SVN::Web::Blame(3pm)
π SVN::Web::Blame
okay so bestie, you know how sometimes you're staring at a line of code like "who WROTE this" and you need RECEIPTS? that's this. this is the SVN::Web action that serves up blame/annotation info. the manual name is straight up SVN::Web::Blame(3pm) and it lives in the User Contributed Perl Documentation era. iconic behavior tbh π
β¨ SYNOPSIS β¨
you drop this into config.yaml and you're basically done, no cap:
actions:
...
blame:
class: SVN::Web::Blame
action_menu:
show:
- file
link_text: (view blame)
...
πΈ DESCRIPTION πΈ
it shows you one specific revision of a file from the Subversion repository, and it comes with all the blame/annotation tea attached. literally the whole point π«Ά
π OPTIONS π
revβ the revision of the file you wanna see. if you don't say anything it defaults to the repository's youngest revision. and listen π¦ β if that revision isn't an interesting revision for this file, the repository history gets searched to find the youngest interesting revision for this file that is less thanrev. the way it goes digging through history for youβ¦ main character energy fr fr.
π§ TEMPLATE VARIABLES π§
at_headβ a boolean value, telling you whether the user is currently looking at the HEAD of the file in the repository.contextβ alwaysfile. always. periodt.revβ the revision that actually got returned. heads up π this is not necessarily the same as therevoption you passed to the action. if therevyou passed isn't interesting (i.e., there were no changes to the file at that revision) then the file's history gets searched backwards to find the next oldest interesting revision.youngest_revβ the youngest interesting revision of the file.mimetypeβ the file's MIME type, extracted from the file'ssvn:mime-typeproperty. if that's not set thentext/plainis used as the fallback.blame_detailsβ an array of hashes. each entry in the array corresponds to a line from the file. each hash contains the following keys:line_noβ the line number (starting with 0) in the file.revisionβ the revision in which this line was last changed.authorβ the author of the revision that changed this line.dateβ the date on which the line was changed, formatted according to "Time and date formatting" in SVN::Web.lineβ the contents of this line.
π EXCEPTIONS π
none. zero. nada. not a single one. she simply does not throw. slay π
π COPYRIGHT π
Copyright 2007 by Nik Clayton <nik@FreeBSD.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
and that's the whole page bestie π« this was perl v5.40.1, dated 2025-04-09, and it's SVN::Web::Blame(3pm) signing off β go find out who broke the build, you've got the tools now π¦β¨π
π¦ where this page comes from
- debian trixie: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- ubuntu resolute: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- ubuntu stonking: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms