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 | grep rev | grep line`;
14 $texto = `cat ChangeLog | grep rev | grep line`;
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 "Fech\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; $i++) {
49 if ($i < $hash{$date}) {
60 print "( ) = Máximo/s Commiteador/es del Día\n";
61 print "* == 1 Commit\n";