| 1 | package SVN::Class::Repos; | ||||||||||||
| 2 | 3 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 3 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 3 | ▶ | use Carp; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 3 | ▶ | use Data::Dump; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 3 | ▶ | use base qw( Rose::URI SVN::Class ); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 3 | our $VERSION = '0.18'; | |||||||||||
| 9 | |||||||||||||
| 10 | =head1 NAME | ||||||||||||
| 11 | |||||||||||||
| 12 | SVN::Class::Repos - represents the repository of a Subversion workspace | ||||||||||||
| 13 | |||||||||||||
| 14 | =head1 SYNOPSIS | ||||||||||||
| 15 | |||||||||||||
| 16 | use SVN::Class; | ||||||||||||
| 17 | |||||||||||||
| 18 | my $file = svn_file( 'path/to/file' ); | ||||||||||||
| 19 | my $info = $file->info; | ||||||||||||
| 20 | my $url = $info->url; | ||||||||||||
| 21 | print "repository URL is $url\n"; | ||||||||||||
| 22 | |||||||||||||
| 23 | =head1 DESCRIPTION | ||||||||||||
| 24 | |||||||||||||
| 25 | SVN::Class::URL represents the source repository for a workspace. | ||||||||||||
| 26 | |||||||||||||
| 27 | =head1 METHODS | ||||||||||||
| 28 | |||||||||||||
| 29 | SVN::Class::URL inherits from Rose::URI and SVN::Class. | ||||||||||||
| 30 | |||||||||||||
| 31 | =cut | ||||||||||||
| 32 | |||||||||||||
| 33 | =head2 init | ||||||||||||
| 34 | |||||||||||||
| 35 | Override the base Rose::URI method to set some default values in object. | ||||||||||||
| 36 | |||||||||||||
| 37 | =cut | ||||||||||||
| 38 | |||||||||||||
| 39 | 0 | ▶ | sub init { | ||||||||||
|
Subroutine
init: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 40 | 0 | my $self = shift; | |||||||||||
| 41 | 0 | $self->SUPER::init(@_); | |||||||||||
| 42 | 0 | ▶ | $self->{svn} ||= 'svn'; | ||||||||||
|
Condition0%0/2
$self->{"svn"} ||= "svn"
MC/DC0%0/1
$self->{"svn"} ||= "svn"
$self->{"svn"}
Truth table0%0/2
A
A= $self->{"svn"}
| |||||||||||||
| 43 | } | ||||||||||||
| 44 | |||||||||||||
| 45 | 3 | 1; | |||||||||||
| 46 | |||||||||||||
| 47 | __END__ | ||||||||||||