]> git.llucax.com Git - z.facultad/75.42/plaqui.git/commitdiff
Se agrega quien hizo mas commits cada dia ... se ve que luca programa 2 lineas ...
authorRicardo Markiewicz <gazer.arg@gmail.com>
Tue, 2 Dec 2003 15:28:19 +0000 (15:28 +0000)
committerRicardo Markiewicz <gazer.arg@gmail.com>
Tue, 2 Dec 2003 15:28:19 +0000 (15:28 +0000)
log_trace.pl

index f1716d34dafb86cd0116d1e9fb28c73e19f4521f..428893b17a22de68a1489ee92cfd5c6a607ab10b 100755 (executable)
 #@lines = <LOG>;
 #close(LOG);
 
-$texto = `svn log | grep rev | grep lines`;
+#$texto = `svn log | grep rev | grep lines`;
+$texto = `cat log.txt | grep rev | grep lines`;
 @lines = split(/\n/, $texto);
-my %hash;
+my %hash, %users;
 
 foreach $line (@lines) {
        @datos = split(/ /, $line);
        $hash{$datos[5]}++;
+       $users{$datos[5]}{$datos[3]}++;
 }
 
 print "PlaQui - Grafica de Progreso SVN\n";
+print "--------------------------------\n\n";
+print "Fecha  Commits\n";
+
 foreach $date (sort keys %hash) {
-       print "$date\t";
+       print "$date     ";
+       
+       $win = "";
+       $win_pts = -1;
+       foreach $name (keys %{$users{$date}}) {
+               if ($users{$date}{$name} > $win_pts) {
+                       $win = $name;
+                       $win_pts = $users{$date}{$name};
+               } else {
+                       if ($users{$date}{$name} = $win_pts) {
+                               $win = $win."|".$name;
+                       }
+               }
+       }
+
+       #Imprimo el Ganador
+
        for($i=0; $i<$hash{$date}; $i++) {
                print "*";
        }
+       print "($win)";
        print "\n";
 }
 
+print "\n";
+print "( ) = Máximo Commiteador del Día\n";
+print "* == 1 Commit\n";
+