The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::Model::SVN::Item - Object representing a file or directory in a subversion repository.

SYNOPSIS

See Catalyst::Model::SVN

DESCRIPTION

This class provides an interface to any versioned item in Subversion.

METHODS

author

The author of the latest revision of the current item.

name

Returns the name of the current item.

is_directory

Returns 1 if the current item is a directory; 0 otherwise.

is_file

Returns 1 if the current item is a file; 0 otherwise.

kind

Returns the kind of the current item. See SVN::Core for the possible types, usually $SVN::Node::path or $SVN::Node::file.

propget ($propname)

The property on the item named $propname

contents

The contents of the of the current item. This is the same as calling Catalyst::Model::SVN-cat($item->uri, $item->revision)

path

Returns the path of the current item relative to the repository root.

uri

Returns the full repository path of the current item.

log

Returns the last log entry for the current item. Be forewarned, this makes an extra call to the repository, which is slow. Only use this if you are listing a single item, and not when looping through large collections of items. If the current item is a copy, the logs are transversed to find the original. The request is then reissued for the original path for the revision specified.

size

Returns the raw file size in bytes for the current item.

time

Returns the last modified time of the current item as a DateTime object.

revision

Returns the revision number of this item

SEE ALSO

Catalyst::Manual, Catalyst::Helper, Catalyst::Model::SVN, SVN::Ra

AUTHORS

    Christopher H. Laco
    CPAN ID: CLACO
    claco@chrislaco.com
    http://today.icantfocus.com/blog/

    Tomas Doran
    CPAN ID: BOBTFISH
    bobtfish@bobtfish.net