VCS::PVCS::Archive - Archive class for for VCS::PVCS.
use VCS::PVCS::Project; $project = new VCS::PVCS::Project("ProjectName");
# return ref to array of all folders in the project with SCRIPTS in the name
$folds = $project->openFolders("SCRIPTS"); foreach $folder (@$folds){ @archives = $folder->Members(); # array of blessed Archive objects foreach $archive(@archives){ $archive->checkout; # Checkout single archive to folder's WD } }
This class provides methods for use by Archive objects in the PVCS model.
Ordinarily, this class won't be included in your programs, as it is part of the ISA for the master class VCS::PVCS::Project, which should ordinarily be used, as shown above.
VCS::PVCS::Archive::new(archivedir, workdir,workfile,"checkin comment","workfile comment");
Open an existing archive or create a new one.
$workfile = $Archive->Workfile;
Return the default workfile for this archive object. Use opts to change default actions.
$Archive->get([get opts]);
Checkout the archive to the CWD. Use opts to change default actions.
Convenience routine calls get()
$Archive->put([put opts]);
Checkin the workfile in CWD to archive. Use opts to change default actions.
Convenience routine calls put()
$Archive->vdiff([vdiff opts]);
Takes a diff on the archive and workfile. Use opts to change default actions.
$Archive->vlog([vlog opts]);
Takes a full vlog on the archive. Use opts to change default actions.
Convenience routine calls vlog()
$Archive->lock($label|$version,[vcs opts]);
Locks the named revision (or rev spec'd by label). Use opts to change default action.
$Archive->unlock($label|$version,[vcs opts]);
unlocks the named revision (or rev spec'd by label). Use opts to change default action.
$Archive->addVersionLabel($label,[vcs opts]);
Create a new sticky version label for the archive (optionally with :<rev>.
$Archive->deleteVersionLabel($label,[vcs opts]);
Delete a version label from the archive.
$Archive->replaceVersionLabel($newlabel,$oldlabel,[vcs opts]);
Rename a version label in the archive
$Archive->addFloatingVersionLabel($label,[vcs opts]);
Create a floating version label for the archive.
$Archive->transformVersionLabel($label,[vcs opts])';
Transform a specified version label to a floating version label.
$Archive->deletePromoGroup($group,[vcs opts]);
Delete the promotion group from the archive.
$Archive->deletePromoGroup($group:$rev,[vcs opts])';
Add the archive, or promote it to, the named promotion group.
Create a new archive
$archive->vcs([opts][files]);
Runs the VCS command against the archive, with opts as specified.
$archive->getAttributes(@_);
Populates and returns the archive object associated with the archive. This object is blessed into the VCS::PVCS::Attributes class.
$archive->attributes;
Returns the attributes object associated with the archive
The PVCS module is Copyright (c) 1998 Bill Middleton. All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
Bill Middleton, wjm@metronet.com
The VCS::PVCS modules are free software.
THEY COME WITHOUT WARRANTY OF ANY KIND.
Commercial support agreements for Perl can be arranged via The Perl Clinic. See http://www.perl.co.uk/tpc for more details.
VCS::PVCS::Project
To install VCS::PVCS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VCS::PVCS
CPAN shell
perl -MCPAN -e shell install VCS::PVCS
For more information on module installation, please visit the detailed CPAN module installation guide.