3 # Scrip que muestra en forma grafica la evolucion de los commits
5 # by Ricardo Markiewicz <rmarkie@fi.uba.ar>
7 # The PlaQui Development Team
9 my %hash, %users, %commits, %lines_count, $texto. $max;
12 $texto = `svn log > ChangeLog`;
14 $texto = `egrep "rev [0-9]+" ChangeLog`;
16 @lines = split(/\n/, $texto);
19 foreach $line (@lines) {
20 @datos = split(/ /, $line);
22 $users{$datos[5]}{$datos[3]}++;
23 $commits{$datos[3]}++;
24 $lines_count{$datos[3]} += $datos[13];
25 if ($hash{$datos[5]} > $max) {
26 $max = $hash{$datos[5]};
30 print "PlaQui - Grafica de Progreso SVN\n";
31 print "--------------------------------\n\n";
32 print "Fecha\t\tCommits\n";
34 foreach $date (sort keys %hash) {
39 foreach $name (keys %{$users{$date}}) {
40 if ($users{$date}{$name} > $win_pts) {
42 $win_pts = $users{$date}{$name};
44 if ($users{$date}{$name} == $win_pts) {
45 $win = $win."|".$name;
50 for($i=0; $i<$max/2; $i++) {
51 if ($i < $hash{$date}/2) {
62 print "Cantidad de commits por usuario:\n";
63 foreach $user (sort keys %commits) {
64 print "\t$user\t$commits{$user}\t($lines_count{$user} lineas)\n";
67 print "( ) = Máximo/s Commiteador/es del Día | ";
68 print "* == 2 Commit\n";