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, $texto. $max;
12 $texto = `svn log > ChangeLog`;
14 $texto = `egrep r[0-9]+ ChangeLog`;
16 @lines = split(/\n/, $texto);
19 foreach $line (@lines) {
20 @datos = split(/ /, $line);
22 $users{$datos[5]}{$datos[3]}++;
23 if ($hash{$datos[5]} > $max) {
24 $max = $hash{$datos[5]};
28 print "PlaQui - Grafica de Progreso SVN\n";
29 print "--------------------------------\n\n";
30 print "Fecha\t\tCommits\n";
32 foreach $date (sort keys %hash) {
37 foreach $name (keys %{$users{$date}}) {
38 if ($users{$date}{$name} > $win_pts) {
40 $win_pts = $users{$date}{$name};
42 if ($users{$date}{$name} == $win_pts) {
43 $win = $win."|".$name;
48 for($i=0; $i<$max/2; $i++) {
49 if ($i < $hash{$date}/2) {
60 print "Cantidad de commits por usuario:\n";
61 print `egrep r[0-9]+ ChangeLog | awk '{print \$3}' | sort | uniq -c | sort -r`;
63 print "( ) = Máximo/s Commiteador/es del Día | ";
64 print "* == 2 Commit\n";