File: HeadRevsDB.pm

package info (click to toggle)
libvcp-perl 0.9-20050110-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,608 kB
  • ctags: 827
  • sloc: perl: 18,194; makefile: 42; sh: 11
file content (56 lines) | stat: -rw-r--r-- 1,262 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package VCP::HeadRevsDB;

=head1 NAME

VCP::HeadRevsDB - Persistant storage for id -> (name, rev_id) maps

=head1 SYNOPSIS

    use base qw( VCP::HeadRevsDB );

=head1 DESCRIPTION

By default, most VCP::Dest::* drivers keep track of the head revision
transferred to the destination for each branch of each file.  This
is used by VCP::Source::* drivers when figuring out what revisions
to export in an incremental (or resumed) export..

The intent for this file is to serve as a base class so that individual
sites may write their own HeadRevsDB plugins to, for instance, store this
state in a RDBMS table.  This is not quite offered at this time; we need
to add an option to the appropriate VCP::Dest::* modules to allow the
appropriate HeadRevsDB file to be loaded.

To write your own HeadRevsDB file, see VCP::HeadRevsDB::sdbm.

=for test_script t/01revmapdb.t

=cut

$VERSION = 1 ;

@ISA = qw( VCP::DB );

use strict ;

use VCP::DB;
#use base "VCP::DB";

sub new {
    shift->SUPER::new( TableName => "head_revs", @_ );
}

=head1 AUTHOR

Barrie Slaymaker <barries@slaysys.com>

=head1 COPYRIGHT

Copyright (c) 2000, 2001, 2002 Perforce Software, Inc.
All rights reserved.

See L<VCP::License|VCP::License> (C<vcp help license>) for the terms of use.

=cut

1