
VCS::LibCVS::RepositoryFileOrDirectory - An object in the repository.


Represents a CVS object in the repository, either a file or a directory. You shouldn't use this directly, instead you should use RepositoryFile and RepositoryDirectory which inherit from it.

$rep_obj = VCS::LibCVS::RepositoryFileOrDirectory->find($repository, $name)
The path of a file or directory within the repository.
It will return either a VCS::LibCVS::RepositoryDirectory or VCS::LibCVS::RepositoryFile object, depending on what the second argument names.

$name = $r_obj->get_name({abs => 1})
All options default to false.
$opts->{abs} False: Don't return absolute filename
$opts->{no_dir} False: Include directory names
$opts->{no_base} False: Include the filename within the directory
Returns the filename of the object with the repository, formatted according to the options.
$rep_obj->get_repository()
Returns the repository in which this object lives.
$r_dir = $r_obj->get_directory_of()
Returns the repository directory in which the object lives.
For a top level relative repository directory (one with no / in the name), the parent directory returned will be ".". For "." an exception will be thrown.
if ($ford1->equals($ford2)) {
Returns true if this and the other "f or d" represent the same thing in the repository.

VCS::LibCVS