SVN::W...vision(3pm)
π SVN::Web::Revision β the manual, but make it cute
okay bestie, welcome to the User Contributed Perl Documentation section, where the real ones live. This page is about SVN::Web::Revision, and yes the title up top gets truncated all dramatic like SVN::W...vision(3pm) but we all know the whole name. It's an SVN::Web action, it's here to show you a repository revision, and it absolutely ate. π
β¨ NAME β¨
SVN::Web::Revision β the SVN::Web action that lets you look at a repository revision. that's the whole job. iconic.
πΈ SYNOPSIS πΈ
in your config.yaml, you set it up like this:
actions:
...
revision:
class: SVN::Web::Revision
opts:
max_diff_size: 200_000
show_diff: 1 # or 0
...
that's it. that's the config. no cap.
π¦ DESCRIPTION π¦
It shows information about a specific revision in a Subversion repository. that's literally the vibe. you point it at a revision, it spills the tea about that revision. π
π CONFIGURATION π
These config options can go in your config.yaml. put them under opts, you know the drill.
max_diff_sizeβ okay so if you're showing the diff (peepshow_diffbelow π), this is the max size of diff that will actually get shown. If the generated diff is bigger than this (measured in bytes), then nope, it's not shown. bye. Defaults to 200,000 bytes.show_diffβ a boolean, honey. saying whether or not a diff of every single file that got changed in the revision should be shown. Defaults to 1.
π OPTIONS π
revβ the revision you want to see. If you don't pass one? It just uses the repository's youngest revision. slay, defaults.
π TEMPLATE VARIABLES π
these are the variables your template gets to play with. so many. obsessed.
contextβ always the string"revision". always. no surprises here.revβ the revision that's being shown.youngest_revβ the repository's youngest revision. super useful when you're constructing your "next revision" and "previous revision" links. girl math for navigation. π§dateβ the date the revision was committed, formatted according to "Time and date formatting" in SVN::Web.authorβ the revision's author. who did this πmsgβ the log message associated with this revision. the commit message. the note. the essay, sometimes.pathsβ a hash of hash refs. Each key is a path name. The value is another hash ref, and it has these keys:isdirβ a boolean,trueif the path is a directory.diffβ anSVN::Web::DiffParserobject representing the diff. This may beundefβ if the generated diff was larger thanmax_diff_size, or ifshow_diffis false. so check before you use it bestie.diff_sizeβ the size of the generated diff, before parsing.max_diff_sizeβ the configured maximum diff size.actionβ a single letter showing what happened to the path. A file was either addedA, modifiedM, replacedR, or deletedD. one letter, four moods.copyfromβ if the file was copied from another file, this is the path of the source of the copy.copyfromrevβ if the file was copied from another file, this is the revision of the file that it was copied from.
π₯ EXCEPTIONS π₯
(revision %1 does not exist)β the given revision does not exist in the repository. it's giving nonexistent. it's giving not found. π
π 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>
aaaand that's the page bestie! π this was perl v5.40.1, dated 2025-04-09, and it came to you straight from the User Contributed Perl Documentation section of SVN::W...vision(3pm). go forth and view your revisions. 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