NAME
SVN::Web::Revision - SVN::Web action to view a repository revision
SYNOPSIS
In config.yaml
actions:
...
revision:
class: SVN::Web::Revision
opts:
show_diff: 1 # or 0
...
DESCRIPTION
Shows information about a specific revision in a Subversion repository.
CONFIGURATION
The following configuration options may be specified in config.yaml.
- show_diff
-
Boolean indicating whether or not a diff of every file that was changed in the revision should be shown.
Defaults to 1.
OPTIONS
- rev
-
The revision to show. There is no default.
- context
-
The number of lines of context to show around each change. Uses the global default if not set.
TEMPLATE VARIABLES
- rev
-
The revision that is being shown.
- youngest_rev
-
The repository's youngest revision. This is useful when constructing
next revision
andprevious revision
links. - date
-
The date on which the revision was committed.
-
The revision's author.
- msg
-
The log message associated with this revision.
- paths
-
A hash of hash refs. Each key is a path name. The value is a further hash ref with the following keys.
- isdir
-
A boolean value, true if the given path is a directory.
- diff
-
The HTML diff for this path (if it was modified in this revision). The diff is generated using Text::Diff::HTML.
A diff is only generated if:
- action
-
A single letter indicating the action that carried out on the path. A file was either added
A
, modifiedM
, or deletedD
. - copyfrom
-
If the file was copied from another file then this is the path of the source of the copy.
- copyfromrev
-
If the file was copied from another file then this is the revision of the file that it was copied form.