Signed-off-by: Shea Levy <shea@shealevy.com>
BEFHUCGNM3FRVAEDTOSSBRKOUNRC2IIYKEIVIVREUBGAEORVRQJAC RPTSGIRCCSEDEBRB5H465A5JULJH5KFYAMR573SKNTPSJSCYEICQC 7OS2VAOO7DB275EIGL33SXEK73GY5R7LKOESY7UE75IJCW5TZ2YAC IBW53PUCYRU75DHCKT4VFGN3B2QNRD6U2WTAQDHJOYEHUHPCXF2QC ZO457GFGXG2GY7IHHXGTG2VLQSDNUMHA4N42AMMYWFWTBUMFHMZAC CS7T2XFIISZ7TPQ6FFRIDYPR6BDCQHURP4JE4YKLI4OYSNWKZCHAC LBNVQXUBEZ45SOTGVXK5UEZXIAIZTJLWZNUYFI4JZ6J65N3KPDVQC PCKLFRT5IZVLG47GQQ23GBSROKUR4CUEZW4PRVGREHNDFTCZ7VBAC NB2VOKIROXTIIIXKPHFHCGO236KPKXWYDSWUWVJF3XBRHRMUIQ4AC ZDEHAFHV3PGIMALKSSPZTKHWMY3EVGYQJPH35DXVJ7OL5NXPY7WAC my $nrCommits = 0;my %authors;if ($prevBuild) {foreach my $curInput ($build->buildinputs_builds) {next unless ($curInput->type eq "git" || $curInput->type eq "hg");my $prevInput = $prevBuild->buildinputs_builds->find({ name => $curInput->name });next unless defined $prevInput;next if $curInput->type ne $prevInput->type;next if $curInput->uri ne $prevInput->uri;next if $curInput->revision eq $prevInput->revision;my @commits;foreach my $plugin (@{$plugins}) {push @commits, @{$plugin->getCommits($curInput->type, $curInput->uri, $prevInput->revision, $curInput->revision)};}foreach my $commit (@commits) {#print STDERR "$commit->{revision} by $commit->{author}\n";$authors{$commit->{author}} = $commit->{email};$nrCommits++;}}}return (\%authors, $nrCommits);}
my $nrCommits = 0;my %authors;if ($prevBuild) {foreach my $curInput ($build->buildinputs_builds) {next unless ($curInput->type eq "git" || $curInput->type eq "hg");my $prevInput = $prevBuild->buildinputs_builds->find({ name => $curInput->name });next unless defined $prevInput;next if $curInput->type ne $prevInput->type;next if $curInput->uri ne $prevInput->uri;next if $curInput->revision eq $prevInput->revision;my @commits;foreach my $plugin (@{$self->{plugins}}) {push @commits, @{$plugin->getCommits($curInput->type, $curInput->uri, $prevInput->revision, $curInput->revision)};}
foreach my $commit (@commits) {#print STDERR "$commit->{revision} by $commit->{author}\n";$authors{$commit->{author}} = $commit->{email};$nrCommits++;}}}
my ($authors, $nrCommits) = getResponsibleAuthors($build, $self->{plugins});