TheOneRing/SVK.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
init
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # Copyright (C) 2009 Wes Hardaker
2 # License: GNU GPLv2. See the COPYING file for details.
3 package TheOneRing::SVK;
4  
5 use strict;
6 use TheOneRing::SVN;
7  
8 # we're functionally really really close to SVN, so we'll inherit a
9 # lot of that for option mapping, etc and augment as needed.
10 our @ISA = qw(TheOneRing::SVN);
11  
12 our $VERSION = '0.3';
13  
14 sub init {
15 my ($self) = @_;
16 $self->SUPER::init(@_);
17  
18 $self->{'command'} = 'svk';
19  
20 # now just modify our slight differences to things...
21 # XXX: nothing yet
22  
23 # eg:
24 # $self->{'mapping'}{'status'}{'args'}{'q'} = "Q";
25  
26 # svk doesn't handle as many args as svn
27 $self->{'mapping'}{'list'}{'args'} = { r => '-r' };
28  
29 $self->{'mapping'}{'export'} =
30 {
31 args => { N => 'N',
32 q => 'q',
33 r => '-r'},
34 command => 'checkout',
35 options => '--export',
36 }
37 }
38  
39 1;