VCP::Revs - A collection of VCP::Rev objects.
Right now, all revs are kept in memory, but we will enable storing them to disk and recovering them at some point so that we don't gobble huge tracts of RAM.
$revs->add( $rev ) ; $revs->add( $rev1, $rev2, ... ) ;
Adds a revision or revisions to the collection.
$revs->set( $rev ) ; $revs->set( $rev1, $rev2, ... ) ;
Sets the list of revs.
@revs = $revs->get ;
Gets the list of revs.
# Using a custom sort function: $revs->sort( sub { my ( $rev_a, $rev_b ) = @_ ; ... } ) ;
Note: Don't use $a and $b in your sort function. They're package globals and that's not your package. See "rev_cmp_sub" in VCP::Dest for more details.
while ( $r = $revs->shift ) { ... }
Call "sort" before calling this :-).
Returns an ARRAY ref of all revs.
This class uses the fields pragma, so you'll need to use base and possibly fields in any subclasses.
Copyright 2000, Perforce Software, Inc. All Rights Reserved.
This module and the VCP package are licensed according to the terms given in the file LICENSE accompanying this distribution, a copy of which is included in vcp.
Barrie Slaymaker <barries@slaysys.com>
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install VCP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VCP
CPAN shell
perl -MCPAN -e shell install VCP
For more information on module installation, please visit the detailed CPAN module installation guide.