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
11 my %hash, %users, $texto. $max;
14 $texto = `svn log > ChangeLog`;
16 $texto = `egrep r[0-9]+ ChangeLog`;
18 @lines = split(/\n/, $texto);
21 foreach $line (@lines) {
22 @datos = split(/ /, $line);
24 $users{$datos[4]}{$datos[2]}++;
25 if ($hash{$datos[4]} > $max) {
26 $max = $hash{$datos[4]};
30 print "PlaQui - Grafica de Progreso SVN\n";
31 print "--------------------------------\n\n";
32 print "Fecha\t\tCantidad de Commits\n";
33 foreach $date (sort keys %hash) {
38 foreach $name (keys %{$users{$date}}) {
39 if ($users{$date}{$name} > $win_pts) {
41 $win_pts = $users{$date}{$name};
43 if ($users{$date}{$name} == $win_pts) {
44 $win = $win."|".$name;
49 for($i=0; $i<$max; $i++) {
50 if ($i < $hash{$date}) {
61 print "Cantidad de commits por usuario:\n";
62 print `egrep r[0-9]+ ChangeLog | awk '{print \$3}' | sort | uniq -c | sort -r`;
64 print "( ) = Máximo/s Commiteador/es del Día | ";
65 print "* == 1 Commit\n";