$cutoff = $opt_c || "0000-00-00";
if ($opt_w) {
-# print "Writing $cl\n";
open (F, ">$cl");
} else {
print "Would have written $cl\n";
$msgs = {};
$author = "";
+ $lastauthor = "";
foreach $file (sort keys %{$log->{$dir}->{$date}}) {
foreach $rev (sort keys %{$log->{$dir}->{$date}->{$file}}) {
$logmsg = $log->{$dir}->{$date}->{$file}->{$rev}->{'logmsg'};
$author = $log->{$dir}->{$date}->{$file}->{$rev}->{'author'};
+ if ($author ne $lastauthor && $lastauthor ne '') {
+ &show_messages($date, $lastauthor, $msgs);
+ $msgs = {};
+ }
+
+ $lastauthor = $author;
if (exists $msgs->{$logmsg}) {
$msgsnew->{$logmsg} = $msgsnew->{$logmsg}
}
}
- print F "$date ", $authorName{$author}, "<$author\@users.sourceforge.net>\n\n";
+ &show_messages($date, $author, $msgs);
+ }
+ close (F);
+}
- foreach $msg (sort fnsort keys %{$msgs}) {
- $files = $msgs->{$msg};
- print F "\t* $files: ";
- print F "\n\t" if (length($files) > 50);
+sub show_messages {
+ my $date = shift;
+ my $author = shift;
+ my $msgs = shift;
- if ($msgsnew->{$msg}) {
- print F "New file.\n\n";
- } else {
- print F "$msg\n";
- }
+ print F "$date ", $authorName{$author}, "<$author\@users.sourceforge.net>\n\n";
+
+ foreach $msg (sort fnsort keys %{$msgs}) {
+ $files = $msgs->{$msg};
+ print F "\t* $files: ";
+ print F "\n\t" if (length($files) > 50);
+
+ if ($msgsnew->{$msg}) {
+ print F "New file.\n\n";
+ } else {
+ print F "$msg\n";
}
}
- close (F);
}
sub fnsort {