SVN::Web::Browse(3pm)
π 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 π
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
- 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