Rechercher une page de manuel
VCS::LibCVS::RepositoryFileOrDirectory.3pm
Langue: en
Version: 2005-10-10 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
VCS::LibCVS::RepositoryFileOrDirectory - An object in the repository.SYNOPSIS
DESCRIPTION
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.CLASS ROUTINES
find()
$rep_obj = VCS::LibCVS::RepositoryFileOrDirectory->find($repository, $name)- return type: subclass of VCS::LibCVS::RepositoryFileOrDirectory
- argument 1 type: VCS::LibCVS::Repository
- argument 2 type: string scalar
- 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.
INSTANCE ROUTINES
get_name()
$name = $r_obj->get_name({abs => 1})- return type: scalar string
- argument 1 type: hash ref of options
- 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.
get_repository()
$rep_obj->get_repository()- return type: VCS::LibCVS::Repository
Returns the repository in which this object lives.
get_directory_of()
$r_dir = $r_obj->get_directory_of()- return type: VCS::LibCVS::RepositoryDirectory
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.
equals()
if ($ford1->equals($ford2)) {- return type: boolean
- argument 1 type: VCS::LibCVS::RepositoryFileOrDirectory
Returns true if this and the other ``f or d'' represent the same thing in the repository.
SEE ALSO
VCS::LibCVS
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre