| 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; |