line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package VCS::File; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
my $PREFIX = 'VCS'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
7
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
95
|
|
6
|
1
|
|
|
1
|
|
6
|
use File::Basename; |
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
518
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
0
|
|
|
0
|
1
|
|
my $container_classtype = shift; |
10
|
0
|
|
|
|
|
|
$container_classtype =~ s#^$PREFIX##; |
11
|
0
|
|
|
|
|
|
my ($hostname, $impl_class, $path, $query) = VCS->parse_url(@_); |
12
|
0
|
|
|
|
|
|
VCS->class_load($impl_class); |
13
|
0
|
|
|
|
|
|
my $this_class = "$impl_class$container_classtype"; |
14
|
0
|
|
|
|
|
|
return $this_class->new(@_); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub init { |
18
|
0
|
|
|
0
|
1
|
|
my ($class, $url) = @_; |
19
|
0
|
|
|
|
|
|
my ($hostname, $impl_class, $path, $query) = VCS->parse_url($url); |
20
|
0
|
|
|
|
|
|
my $self = {}; |
21
|
0
|
|
|
|
|
|
$self->{URL} = $url; |
22
|
0
|
|
|
|
|
|
$self->{PATH} = $path; |
23
|
0
|
|
|
|
|
|
bless $self, $class; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub url { |
27
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
28
|
0
|
|
|
|
|
|
$self->{URL}; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
0
|
1
|
|
sub tags { |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
1
|
|
sub versions { |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub path { |
38
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
39
|
0
|
|
|
|
|
|
$self->{PATH}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |