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, $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 if ($hash{$datos[5]} > $max) {
25 $max = $hash{$datos[5]};
29 print "PlaQui - Grafica de Progreso SVN\n";
30 print "--------------------------------\n\n";
31 print "Fecha\t\tCommits\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/2; $i++) {
50 if ($i < $hash{$date}/2) {
61 print "Cantidad de commits por usuario:\n";
62 foreach $user (sort keys %commits) {
63 print "\t$user\t$commits{$user}\n";
66 print "( ) = Máximo/s Commiteador/es del Día | ";
67 print "* == 2 Commit\n";