SVN::Web::Revision(3)

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. If not provided then use the repository's youngest revision.

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" and "previous revision" links.

date
    The date on which the revision was committed, formatted according to "Time and date formatting" in SVN::Web.

author
    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:

        a)  The file was modified.

        b)  The file was copied from another file, and the new file and the old file have different MD5 checksums.

    action
        A single letter indicating the action that carried out on the path. A file was either added "A", modified "M", or deleted "D".

    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.

EXCEPTIONS

(no revision)
    The "rev" parameter was not given.