SVN::Web::Browse3pm
Svn::web action to browse a subversion repository
Usage
In config.yaml
actions:...browse:class: SVN::Web::Browseaction_menu:show:- directorylink_text: (browse directory)...
Overview
Returns a file/directory listing for the given repository path.
Options
- rev
-
The repository revision to show. Defaults to the repository's youngest revision.
Template variables
- at_head
-
A boolean value, indicating whether or not the user is currently browsing the HEAD of the repository.
- context
-
Always
"directory".
- entries
-
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.
- name
-
The entry's name.
- path
-
The entry's full path.
- rev
-
The entry's most recent interesting revision.
- size
-
The entry's size, in bytes. The empty string
''for directories.
- type
-
The entry's
"svn:mime-type"property. Not set for directories.
- author
-
The userid that committed the most recent interesting revision for this entry.
- date
-
The date of the entry's most recent interesting revision, formatted according to "Time and date formatting" in SVN::Web.
- msg
-
The log message for the entry's most recent interesting revision.
- rev
-
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.
- youngest_rev
-
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.
Releases
8 releases since Debian 5.0 (Lenny); the text changed 5 times.