| 1 | package VCI::VCS::Bzr::Repository; | ||
| 2 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use MooseX::Method; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | extends 'VCI::Abstract::Repository'; | |
| 6 | |||
| 7 | 0 | ▶ | sub BUILD { shift->_root_always_ends_with_slash } |
|
Subroutine
BUILD: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 8 | |||
| 9 | # Note that "projects" won't work for some remote repositories, because of | ||
| 10 | # limitations of "bzr branches". | ||
| 11 | 0 | ▶ | sub _build_projects { |
|
Subroutine
_build_projects: not called CC=2 SCAR=17.9
| |||
| 12 | 0 | my $self = shift; | |
| 13 | 0 | my $branch_names = $self->vci->x_do(args => ['branches', $self->root]); | |
| 14 | 0 | my @projects; | |
| 15 | 0 | foreach my $branch (split("\n", $branch_names)) { | |
| 16 | 0 | push(@projects, $self->project_class->new(name => $branch, | |
| 17 | repository => $self)); | ||
| 18 | } | ||
| 19 | 0 | return \@projects; | |
| 20 | } | ||
| 21 | |||
| 22 | 1 | __PACKAGE__->meta->make_immutable; | |
| 23 | |||
| 24 | 1 | 1; | |