#
# The PlaQui Development Team
-my %hash, %users, $texto. $max;
+my %hash, %users, %commits, %lines_count, $texto. $max;
if (shift eq "-d") {
- $texto = `svn log | grep rev | grep line`;
-} else {
- $texto = `cat ChangeLog | grep rev | grep line`;
+ $texto = `svn log > ChangeLog`;
}
+$texto = `egrep "rev [0-9]+" ChangeLog`;
+
@lines = split(/\n/, $texto);
$max = -1;
@datos = split(/ /, $line);
$hash{$datos[5]}++;
$users{$datos[5]}{$datos[3]}++;
+ $commits{$datos[3]}++;
+ $lines_count{$datos[3]} += $datos[13];
if ($hash{$datos[5]} > $max) {
$max = $hash{$datos[5]};
}
print "PlaQui - Grafica de Progreso SVN\n";
print "--------------------------------\n\n";
-print "Fech\t\tCommits\n";
+print "Fecha\t\tCommits\n";
foreach $date (sort keys %hash) {
print "$date\t";
}
print "\n";
-print "( ) = Máximo/s Commiteador/es del Día\n";
+print "Cantidad de commits por usuario:\n";
+foreach $user (sort keys %commits) {
+ print "\t$user\t$commits{$user}\t($lines_count{$user} lineas)\n";
+}
+print "\n";
+print "( ) = Máximo/s Commiteador/es del Día | ";
print "* == 2 Commit\n";