SVN::Web::Blame(3pm)

πŸ“¦
version 0.63 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’… 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 than rev. 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 β€” always file. always. periodt.
  • rev β€” the revision that actually got returned. heads up πŸ’€ this is not necessarily the same as the rev option you passed to the action. if the rev you 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's svn:mime-type property. if that's not set then text/plain is 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 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