# -*- perl -*- # # Test::AutoBuild::Repository by Daniel Berrange # # Copyright (C) 2002 Daniel Berrange # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Id: Repository.pm,v 1.2.2.2 2004/08/16 09:05:37 danpb Exp $ =pod =head1 NAME Test::AutoBuild::Repository - Source control repository access =head1 SYNOPSIS use Test::AutoBuild::Repository my $rep = Test::AutoBuild::Repository->new( name => $name, options => \%options, env => \%env, label => $label); # Add a module to the repository $rep->module($module); # Initialize the repository $rep->init(); # Checkout / update the module my $changed = $rep->export($name, $module); =head1 DESCRIPTION This module provides the API for interacting with the source control repositories. A repository implementation has to be able to do two main things * Get a checkout of a new module * Update an existing checkout, determining if any changes where made =head1 CONFIGURATION The valid configuration options for the C block are =head1 METHODS =over 4 =cut package Test::AutoBuild::Repository; use strict; use Test::AutoBuild::Lib; use Carp qw(confess); =pod =item my $rep = Test::AutoBuild::Repository->new(name => $name, label => $label, options => \%options, env => \%env); This method creates a new repository. The C argument is an alphanumeric token representing the name of the repository. The C