VCS::LibCVS::Command - A command to send to the server.
VCS::LibCVS::Command represents a single command sent to the server, and provides access to the response.
It is for internal LibCVS use only.
$command = VCS::LibCVS::Command->new($opts, $command, $opts, $files_and_dirs)
Newly created command class.
No options currently supported.
The CVS command to call, such as "update", "ci", etc. Strictly, it is the name of one of the subclasses of VCS::LibCVS::Client::Request::ArgumentUsingRequest.
Options to pass to the CVS server, such as "-r1.1", "-kb". These are pretty much the same as the options passed on the cvs command line.
The files and directories to process for the command. They are objects of any of these types: VCS::LibCVS::RepositoryFile VCS::LibCVS::RepositoryDirectory VCS::LibCVS::WorkingFile VCS::LibCVS::WorkingDirectory VCS::LibCVS::FileRevision
Creates a new Command. You must then issue the command on a repository.
$command->issue($repo)
The repository upon which the command is issued.
Issues the command on the repository. In case of error an exception is thrown.
To get the reponses, use get_responses() or get_messages().
@responses = $command->get_responses($type)
The type of responses requested.
Returns the responses of the specified type. If the type is undef or the empty string, all responses are returned.
@messages = $command->get_messages($pattern)
Optional Regexp that returned messages match.
Goes through all the M reponses and returns the contents of those which match the provided regexp.
@messages = $command->get_errors($pattern)
Optional Regexp that returned errors match.
Goes through all the E reponses and returns the contents of those which match the provided regexp.
@files = $command->get_files()
Goes through all the reponses and returns those which are file transmissions. They are responses of type "Checked-in", "Merged", "Updated", . . .
VCS::LibCVS
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.