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

NAME

VCS::LibCVS::Slice - A slice through a CVS Repository.

SYNOPSIS

DESCRIPTION

A set of revisions in the repository, with at most one revision per file. Common examples of slices are the revisions of all files in a directory at a specific time, or all file revisions with a specific tag.

A slice is used to manipulate sets of revisions for operations such as tagging and retrieving known configurations.

INSTANCE ROUTINES

get_revision()

$file_rev = $slice->get_revision($file)

argument 1 type: VCS::LibCVS::RepositoryFile
return type: VCS::LibCVS::FileRevision

Returns the revision of the given file in this slice, or undef if there isn't one.

get_revisions()

@file_revs = $slice->get_revisions()

return type: ref to array of VCS::LibCVS::FileRevision

Returns all the revisions in this slice, in a list.

add_revision()

$slice->add_revision($file_rev)

argument 1 type: VCS::LibCVS::FileRevision
return type: void

Adds the provided FileRevision to the slice. If the file already has a revision in this slice, it is overwritten.

tag()

$slice->tag($tag_name)

argument 1 type: string
return type: void

Tag the revisions in this slice with the given tag_name. If you want to create a branch at these revisions, use branch() instead.

SEE ALSO

  VCS::LibCVS