$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 " commited 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 " commited by "; - print HTML_encode("$2"); - print "\n\n" - } - elsif($line =~ /(\S+) (\(\S+\))([,:])/ || $line =~ /(\S+) (\(\S+,\s+\S+\))([,:])/) { - #chop $line; - my ($file, $rest, $ext) = ($1, $2, $3); - print "";
- print "";
- print HTML_encode($file);
- print " ";
- if($rest =~ /\((\d+).(\d+)(.*)\)/) {
- my $newrev = "$1.$2";
- my $oldminver = $2-1;
- my $oldrev = "$1.$oldminver";
- if(!($1==1 && $2==1)) {
- my $diff = ".diff?r1=$oldrev&r2=$newrev";
- print "(";
- print HTML_encode("$1.$2");
- print "";
- print HTML_encode("$3)");
+ elsif($line =~ /([^\s]+) (\([^,^\)]+(,[^\)]+)?\))([,:])/) {
+ my ($file, $rev, $tags, $ext) = ($1, $2, $3, $4);
+ $ext = escapeHTML($ext);
+ if($sec != $secfiles) {
+ $sec = $secfiles;
+ print <<"END";
+ \n" + if($ext !~ /:$/) { + print <<"END"; + +END + } } else { - chop $line; - print " ";
- print HTML_encode($line);
- print " \n" + next if $sec == $secwho; # not done secfiles yet + if($sec != $seclog) { + $sec = $seclog; + print <<"END"; + + +END + } + chomp $line; + push(@log, $line); } } + if($sec == $seclog) { + @log = &trim_array(@log); + foreach my $logline (@log) { + $logline =~ s/^\t//; + print escapeHTML("$logline\n"); + } + @log = (); + print <<"END"; ++ |
\n\n"; + print <<"END"; +