SVN::Web::View(3pm)

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

✨ SVN::Web::View ✨

okay bestie, so this is SVN::Web::View(3pm) β€” it lives in the User Contributed Perl Documentation collection and it's literally the action that lets you view a file in the repository. no cap. πŸ‘‘


πŸ’– NAME πŸ’–

SVN::Web::View β€” the SVN::Web action that shows you a file in the repository. that's it. that's the whole job. slay.


πŸ¦‹ SYNOPSIS πŸ¦‹

in config.yaml, you set it up like this:

actions:
  ...
  view:
    class: SVN::Web::View
    action_menu:
      show:
        - file
      link_text: (view file)
  ...

🌸 DESCRIPTION 🌸

so what does it actually do? it shows a specific revision of a file in the Subversion repository, and it also includes the commit information for that file. like, the receipts. πŸ”₯


πŸ’… OPTIONS πŸ’…

  • rev β€” the revision of the file you wanna show. defaults to the repository's youngest revision, which is giving "whatever's newest, idc". BUT β€” and this is the important part β€” 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. so it goes digging. patient queen behavior. πŸ’œ

πŸŽ€ TEMPLATE VARIABLES πŸŽ€

these are the variables hanging out in the template, bestie:

  • at_head β€” a boolean value, saying whether the user is currently viewing the HEAD of the file in the repository. true/false vibes.
  • context β€” always "file". always. no drama.
  • rev β€” the revision that has been returned. ⚠️ heads up: this is not necessarily the same as the "rev" option passed to the action. if the "rev" passed to the action is not interesting (i.e., there were no changes to the file at that revision) then the file's history is searched backwards to find the next oldest interesting revision. so like, it time-travels a lil bit. πŸ•°οΈ
  • 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. default era. ✨
  • file β€” the contents of the file. the whole thing.
  • author β€” the revision's author. the main character who did this. πŸ‘‘
  • date β€” the date the revision was committed, formatted according to "Time and date formatting" in SVN::Web.
  • msg β€” the revision's commit message. the caption. the lore. πŸ“

πŸ’€ EXCEPTIONS πŸ’€

None.

like literally none. nothing. she does not throw. iconic behavior honestly. πŸ™ˆ


Copyright 2003-2004 by Chia-liang Kao "<clkao@clkao.org>".

Copyright 2005-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 the SVN::Web::View(3pm) page from the User Contributed Perl Documentation. mwah. πŸ’‹

πŸ“¦ where this page comes from