line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
2814
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
147
|
|
2
|
4
|
|
|
4
|
|
24
|
use warnings; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
134
|
|
3
|
4
|
|
|
4
|
|
21
|
use utf8; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
31
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Ukigumo::Client::VC::Callback; |
6
|
4
|
|
|
4
|
|
157
|
use Mouse; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
30
|
|
7
|
4
|
|
|
4
|
|
1196
|
use Cwd; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
1574
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Ukigumo::Client::Role::VC'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has 'revision_cb' => ( |
12
|
|
|
|
|
|
|
is => 'ro', |
13
|
|
|
|
|
|
|
isa => 'CodeRef', |
14
|
|
|
|
|
|
|
default => sub { sub { 'unknown' } }, |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has 'update_cb' => ( |
18
|
|
|
|
|
|
|
is => 'ro', |
19
|
|
|
|
|
|
|
isa => 'CodeRef', |
20
|
|
|
|
|
|
|
required => 1, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has 'get_log_cb' => ( |
24
|
|
|
|
|
|
|
is => 'ro', |
25
|
|
|
|
|
|
|
isa => 'CodeRef', |
26
|
|
|
|
|
|
|
default => sub { sub { '-' } }, |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has 'default_branch_cb' => ( |
30
|
|
|
|
|
|
|
is => 'ro', |
31
|
|
|
|
|
|
|
isa => 'CodeRef', |
32
|
|
|
|
|
|
|
default => sub { sub { 'master' } }, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub default_branch { |
36
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
37
|
0
|
|
|
|
|
|
$self->default_branch_cb->(@_); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub get_revision { |
41
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
42
|
0
|
|
|
|
|
|
$self->revision_cb->(@_); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub update { |
46
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
47
|
0
|
|
|
|
|
|
$self->update_cb->(@_); |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub get_log { |
51
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
52
|
0
|
|
|
|
|
|
$self->get_log_cb->(@_) |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |
56
|
|
|
|
|
|
|
|