VCS::LibCVS::Admin - The CVS sandbox administrative directory.
$admin_dir = VCS::LibCVS::Admin->new("/home/alex/wrk/libcvs/Perl"); $entries = $admin->get_Entries; $tag = $admin->get_Tag;
Admin represents the administrative information used for managing the checked-out files in the sandbox. Each instance of Admin reprsents this information for the contents of a single directory.
In order to be compatible with other CVS implementations, the default is to use a subdirectory of the indicated directory named "CVS". It should contain at least the three files "Entries", "Root" and "Repository". To use a different name, change $VCS::LibCVS::Admin_Dir_Name.
The administrative information is accessed through objects which are subclasses of LibCVS::Datum.
$admin_dir = Admin->new($directory_name)
A new Admin.
The name of directory in the file system. This should not end in a slash.
Creates a new Admin. The administrative information is assumed to be in a subdirectory called CVS (or value of $VCS::LibCVS::Admin_Dir_Name) of the specified directory.
$dir_name = $admin->get_dir_name()
Returns the name of the local directory whose administrative data this object represents.
$entries = $admin->get_Entries()
keys are filenames as strings, values are VCS::LibCVS::Datum::Entry
Returns the list of CVS managed files in the directory. They are stored in a hash with relative filenames as keys and LibCVS::Datum::Entry objects as values.
$root = $admin->get_Root()
Returns the CVS Root for the directory.
$rep_dir = $admin->get_Repository()
Returns the name of the repository directory for this directory, relative to the root of the repository.
$tag = $admin->get_Tag()
Returns the sticky tag specification for this directory. If there is no sticky tag, it returns undef.
VCS::LibCVS::Datum
To install VCS::LibCVS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VCS::LibCVS
CPAN shell
perl -MCPAN -e shell install VCS::LibCVS
For more information on module installation, please visit the detailed CPAN module installation guide.