VCP::Revs3pm
A collection of vcp::rev objects.
Overview
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.
Methods
- new
- add
-
$revs->add( $rev ) ;$revs->add( $rev1, $rev2, ... ) ;Adds a revision or revisions to the collection.
The ( name, rev_id, branch_id ) tuple must be unique, if a second rev is
"add()"ed with the same values, an exception is thrown.
- get
-
$rev = $revs->get( $id ) ; ## return the rev with a given ID (or die())
- foreach
-
$revs->foreach( sub { ... } );Apply a subroutine to each revision.
Subclassing
This class uses the fields pragma, so you'll need to use base and possibly fields in any subclasses.
Releases
2 releases since Debian 3.1 (Sarge); the text changed 1 time.