i-scream CVS Commit Logs
-$heading
++ i-scream CVS Commit Logs +
++ $heading +
++ $module module +
+END - print "\n$module module\n |
\n";
-
my(@lines) = `$logcmd $module 2>&1`;
if(@lines == 0) {
- print "There have been no commits in this module during this period.\n";
+ print <<"END";
+ + There have been no commits in this module during this period. + +END } else { + my(@log) = (); foreach my $line (@lines) { - if ($line =~ /^([0-9]{4}-[0-9]{2}-[0-9]{2}.*?)\s+([^\s]+)\s+<([^\s]+)>$/) { - print "\n\n"; - print HTML_encode($1); - print "\n"; - print " committed by "; - print HTML_encode("$2"); - print "\n\n" + if ($line =~ /^([0-9]{4}-[0-9]{2}-[0-9]{2}.*?)\s+([^\s]+)(\s+<([^\s]+)>)?$/) { + my($datetime) = escapeHTML($1); + my($committer) = escapeHTML($2); + my($email) = $4; + + if($sec != $secwho) { + if($sec == $seclog) { + @log = &trim_array(@log); + foreach my $logline (@log) { + $logline =~ s/^\t//; + print escapeHTML("$logline\n"); + } + @log = (); + print <<"END"; + + +END + } + if($firstentry) { + $firstentry = 0; + print <<"END"; +
+END
+ }
+ else {
+ print <<"END";
+
+END
+ }
+ $sec = $secwho;
+ }
+
+ print <<"END";
+
+END
+ }
}
- print "+ + $datetime + + committed by +END + if(defined $email) { + print <<"END"; + $committer +END + } + else { + print <<"END"; + $committer +END + } + print <<"END"; + +END } - elsif ($line =~ /^([0-9]{4}-[0-9]{2}-[0-9]{2}.*?)\s+([^\s]+)$/) { - print "\n\n"; - print HTML_encode($1); - print "\n"; - print " committed by "; - print HTML_encode("$2"); - print "\n\n" - } elsif($line =~ /([^\s]+) (\([^,^\)]+(,[^\)]+)?\))([,:])/) { my ($file, $rev, $tags, $ext) = ($1, $2, $3, $4); - print "";
- print "";
- print HTML_encode($file);
- print " ";
+ $ext = escapeHTML($ext);
+ if($sec != $secfiles) {
+ $sec = $secfiles;
+ print <<"END";
+ \n" + if($ext !~ /:$/) { + print <<"END"; + +END + } } else { + next if $sec == $secwho; # not done secfiles yet + if($sec != $seclog) { + $sec = $seclog; + print <<"END"; + + +END + } chomp $line; - print "+ |
\n\n"; + print <<"END"; +