Apache::CVS::File - class that implements a versioned file
use Apache::CVS::RcsConfig(); use Apache::CVS::File(); use Apache::CVS::Revision(); $versioned_file = Apache::CVS::File->new($path, $rcs_config); $name = $versioned_file->name(); $path = $versioned_file->path(); $num_revisions = $versioned_file->revision_count(); $revision_one = $versioned_file->revision('first'); $revision_two = $versioned_file->revision('next'); $revision_first = $versioned_file->revision('1.1');
The Apache::CVS::File class implements a typical CVS file.
Apache::CVS::File
Construct a new Apache::CVS::File object. The first argument is the full path of the file. The second is a RCS configuration object.
Get an Rcs object associated with this file.
Get or set the path of this file.
Returns a reference to a list of Apache::CVS::Revision objects in no particular order.
Apache::CVS::Revision
Returns a Apache::CVS::Revision object for the given index. The index can be an absolute revision number (1.1, 1.2, 1.3.2.4) or one of the following: first, next, prev, last. Using the 'next' index on the first invocation of this method result in the same thing as using 'first'. Similarly using 'prev' on the first invocation is the same and using 'last'. If no revision can be found, the method will return undef.
Returns the number of revision associated with this file.
Returns the filename of this file.
Apache::CVS, Apache::CVS::File, Apache::CVS::Revision, Apache::CVS::RcsConfig
John Barbee <barbee@veribox.net>
Copyright 2001-2002 John Barbee
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Apache::CVS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::CVS
CPAN shell
perl -MCPAN -e shell install Apache::CVS
For more information on module installation, please visit the detailed CPAN module installation guide.