346 |
my ($action,$path) = ($p->{'action'},$p->{'content'}); |
my ($action,$path) = ($p->{'action'},$p->{'content'}); |
347 |
my $weight = ''; |
my $weight = ''; |
348 |
if ( my $s = $e->{diff_paths}->{$path} ) { |
if ( my $s = $e->{diff_paths}->{$path} ) { |
349 |
$weight = $s->{removed} if defined $s->{removed}; |
$weight = $s->{removed} || 0; |
350 |
$weight += $s->{added} * 2 if defined $s->{added}; |
$weight += $s->{added} * 2 if $s->{added}; |
351 |
$weight = qq| weight="$weight" |; |
$weight = qq| weight="$weight" |; |
352 |
} |
} |
353 |
$file_events .= qq|\t<event filename="$path" date="$date" author="$author"$weight/>\n|; |
$file_events .= qq|\t<event filename="$path" date="$date" author="$author"$weight/>\n|; |