Scroll to navigation

SVN::Web::Browse(3pm) User Contributed Perl Documentation SVN::Web::Browse(3pm)

NAME

SVN::Web::Browse - SVN::Web action to browse a Subversion repository

SYNOPSIS

In config.yaml

  actions:
    ...
    browse:
      class: SVN::Web::Browse
      action_menu:
        show:
          - directory
        link_text: (browse directory)
    ...

DESCRIPTION

Returns a file/directory listing for the given repository path.

OPTIONS

The repository revision to show. Defaults to the repository's youngest revision.

TEMPLATE VARIABLES

A boolean value, indicating whether or not the user is currently browsing the HEAD of the repository.
Always "directory".
A list of hash refs, one for each file and directory entry in the browsed path. The list is ordered with directories first, then files, sorted alphabetically.

Each hash ref has the following keys.

The entry's name.
The entry's full path.
The entry's most recent interesting revision.
The entry's size, in bytes. The empty string '' for directories.
The entry's "svn:mime-type" property. Not set for directories.
The userid that committed the most recent interesting revision for this entry.
The date of the entry's most recent interesting revision, formatted according to "Time and date formatting" in SVN::Web.
The log message for the entry's most recent interesting revision.
The repository revision that is being browsed. Will be the same as the "rev" parameter given to the action, unless that parameter was not set, in which case it will be the repository's youngest revision.
The repository's youngest revision.

EXCEPTIONS

(path %1 does not exist in revision %2)
The given path is not present in the repository at the given revision.
(path %1 is not a directory in revision %2)
The given path exists in the repository at the given revision, but is not a directory. This action is only used to browse directories.

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>

2022-06-14 perl v5.34.0