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

NAME

VCS::LibCVS::RepositoryFile - A File in the CVS repository.

SYNOPSIS

DESCRIPTION

Represents a file in the CVS repository.

SUPERCLASS

VCS::LibCVS::RepositoryFileOrDirectory

INSTANCE ROUTINES

get_tags()

$files_tags = $cvs_file->get_tags()

return type: ref to list of scalar strings.

Returns a list of all the non-branch tags on the file.

has_tag($name)

if ($cvs_file->has_tag("foo_tag")) { . . .

return type: scalar boolean

Returns true if the file has a non-branch tag by that name.

get_branches()

$files_branches = $cvs_file->get_branches()

return type: ref to list of VCS::LibCVS::FileBranch

Returns a list of all the named branches of the file.

This includes the revision 1 trunk, with the name .TRUNK, but does not include any other unnamed branches.

get_branch($name_or_rev_or_branch)

$files_branch = $cvs_file->get_branch("branch_1_1_4_stabilization")

argument 1 type: scalar or VCS::LibCVS::Datum::RevisionNumber or VCS::LibCVS::Branch
return type: object of type VCS::LibCVS::FileBranch

Return the specified branch, or undef if there is no such branch. The branch can be specified by a name, a branch revision number, or a Branch.

get_revision()

$files_rev = $cvs_file->get_revision($tag_or_revision)

argument 1 type: scalar string
return type: VCS::LibCVS::FileRevision

Returns the revision of the file specified by the named tag or revision number, or raises an error if there is no such tag or revision.

The BASE tag is not supported, since this is a repository object with no knowledge of the working directory. The WorkingFile object will provide the necessary information.

SEE ALSO

  VCS::LibCVS