SVN::Web::Browse(3pm)

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

πŸ’– SVN::Web::Browse (3pm) β€” bestie edition πŸ’–

okay so this is SVN::Web::Browse, a Perl module from the User Contributed Perl Documentation, and it's basically the browse the SVN repo action of SVN::Web. main character energy, fr fr.


✨ NAME ✨

SVN::Web::Browse β€” the SVN::Web action that lets you browse a Subversion repository πŸ¦‹


🌸 SYNOPSIS 🌸

it lives in config.yaml, and it's giving:

actions:
  ...
  browse:
    class: SVN::Web::Browse
    action_menu:
      show:
        - directory
      link_text: (browse directory)
  ...

no cap, that's the whole vibe. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

It returns a file/directory listing for whatever repository path you hand it. that's it, that's the job. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • rev β€” the repository revision you wanna show. defaults to the repository's youngest revision. so if you don't say anything, it shows you the freshest one. periodt.

πŸ¦‹ TEMPLATE VARIABLES πŸ¦‹

these are the lil' values the template gets to play with. obsessed with them honestly.

  • at_head β€” a boolean value, indicating whether or not the user is currently browsing the HEAD of the repository.
  • context β€” always "directory". always. no notes.
  • entries β€” a list of hash refs, one for each file and directory entry in the browsed path. the list is ordered directories first, then files, sorted alphabetically. so organised. slay.

each hash ref has the following keys:

  • name β€” the entry's name.
  • path β€” the entry's full path.
  • rev β€” the entry's most recent interesting revision.
  • size β€” the entry's size, in bytes. it's the empty string '' for directories.
  • type β€” the entry's "svn:mime-type" property. not set for directories.
  • author β€” the userid that committed the most recent interesting revision for this entry.
  • date β€” the date of the entry's most recent interesting revision, formatted according to "Time and date formatting" in SVN::Web.
  • msg β€” the log message for the entry's most recent interesting revision.
  • rev β€” the repository revision that is being browsed. it will be the same as the "rev" parameter given to the action, UNLESS that parameter was not set, in which case it will be the repository's youngest revision. iykyk.
  • youngest_rev β€” the repository's youngest revision. πŸ’œ

😭 EXCEPTIONS 😭

these are the moments where it says no ❀️ and throws at you:

  • (path %1 does not exist in revision %2) β€” the given path is not present in the repository at the given revision. she's simply not there bestie.
  • (path %1 is not a directory in revision %2) β€” the given path exists in the repository at the given revision, but it is not a directory. this action is only used to browse directories. so like… wrong door. πŸšͺπŸ’€

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, go browse that repo, you ate πŸ’–βœ¨

okok final sign-off: this lil' doc is from perl v5.40.1, dated 2025-04-09, and you're reading SVN::Web::Browse(3pm). mwah. πŸ«ΆπŸŽ€πŸŒΈ

πŸ“¦ where this page comes from