VCP::Revs(3pm)

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.

  1. 3.1
  2. 4.0

Author

Barrie Slaymaker <[email protected]>

From libvcp-perl 0.9-20050110-1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.