SVN::Web::Diff(3pm)
π NAME π
SVN::Web::Diff β the SVN::Web action that shows you the difference between two revisions of a file, bestie. It's giving "spot the difference" but make it version control β¨
πΈ SYNOPSIS πΈ
In config.yaml:
actions:
...
diff:
class: SVN::Web::Diff
...
okay so you drop that in your config and boom, you've got a diff action π
π¦ DESCRIPTION π¦
It returns the difference between two revisions of the same file. That's it. That's the whole vibe. One file, two revs, and the receipts in between π
β¨ CONFIGURATION β¨
The following configuration options may be specified in config.yaml. Yes, you actually write these yourself, so pay attention π
max_diff_sizeβ if you're showing the diff (peep "show_diff"), this is the maximum size of the diff that will actually get shown. If the generated diff (measured in bytes) is bigger than this number, it justβ¦ doesn't show up. Sorry bestie, no diff for you π
Defaults to 200,000 bytes.
π₯ OPTIONS π₯
rev1β the first revision of the file you want to compare.rev2β the second revision of the file you want to compare.revsβ a list of two or more revisions. If you pass this, the smallest number in the list gets assigned torev1(and yes, it overrides anyrev1value you gave) and the largest number in the list gets assigned torev2(which also overrides anyrev2you gave). The override is real, no cap.
In other words:
...?rev1=5;rev2=10
is equal to:
...?revs=10;revs=5
This is what supports the "diff between arbitrary revisions" functionality. Iconic behaviour honestly π
mimeβ the desired output format. Default ishtml, which gives you a diff marked up in HTML. The other allowed value istext, for a plain text unified diff. Pick your fighter β
π TEMPLATE VARIABLES π
at_headβ Boolean, indicating whether or not we're currently diffing against the youngest revision of this file.contextβ alwaysfile. Every single time. Consistency queen πrev1β the first revision of the file to compare. Corresponds with therev1parameter, either set explicitly, or extracted fromrevs.rev2β the second revision of the file to compare. Corresponds with therev2parameter, either set explicitly, or extracted fromrevs.diffβ anSVN::Web::DiffParserobject that contains the text of the diff. Call the object's methods to format the diff. She's got methods, use them πdiff_sizeβ the size of the generated diff (before parsing).max_diff_sizeβ the configured maximum diff size.
π EXCEPTIONS π
(cannot diff nodes of different types: %1 %2 %3)β the given path has different node types at the different revisions. This probably means a file was added, deleted, and then re-added as a directory at a later date (or vice-versa). Chaotic behaviour fr fr π(path %1 is a directory at rev %2)β the user has tried to diff two directories. This is not currently supported. Not me trying to diff directories π(path %1 does not exist in revision %2)β the given path is not present in the repository at the given revision. She's not there. Never was π«Ά(two revisions must be provided)β no revisions were given to diff against. You literally gave me nothing to work with π(rev1 and rev2 must be different)β either only one revision number was given, or several were given, but they're the same number. Comparing a thing to itself is not a diff, bestie π
π 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>
okay that's the whole page, you ate that π this was SVN::Web::Diff from perl v5.40.1, dated 2025-04-09 β go forth and diff responsibly, 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