
SVN::Web::Diff - SVN::Web action to show differences between file revisions

In config.yaml
actions:
...
diff:
class: SVN::Web::Diff
...

Returns the difference between two revisions of the same file.

The first revision of the file to compare.
The second revision of the file to compare.
A list of two or more revisions. If present, the smallest number in the list is assigned to rev1 (overriding any given rev1 value) and the largest number in the list is assigned to rev2 (overriding any given rev2 value).
In other words:
...?rev1=5;rev2=10
is equal to:
...?revs=10;revs=5
This supports the "diff between arbitrary revisions" functionality.
The desired output format. The default is html for an HTML, styled diff using Text::Diff::HTML. The other allowed value is text, for a plain text unified diff.
The number of lines of context to show around each change. Uses the global default if not set.

The first revision of the file to compare. Corresponds with the rev1 parameter, either set explicitly, or extracted from revs.
The second revision of the file to compare. Corresponds with the rev2 parameter, either set explicitly, or extracted from revs.
In addition, if mime is html then raw HTML is returned for immediate insertion in to the template. If mime is text then the template is bypassed and plain text is returned.

The given path is not present in the repository at the given revision.
Showing the difference between two directories needs the SVN::DiffEditor module.
No revisions were given to diff against.
Either only one revision number was given, or several were given, but they're the same number.