my $state='start';
my ($rev, $user, $when, @pages, $message);
foreach (`LANG=C svn log -v '$svn_url'`) {
- print STDERR "state: $state\n";
chomp;
if ($state eq 'start' && /$div/) {
$state='header';
$state='body';
}
elsif ($state eq 'body' && /$div/) {
- push @ret, {rev => $rev, user => $user,
+ push @ret, { rev => $rev, user => $user,
date => $when, message => $message,
- pages => [@pages]},
- last if @ret >= $num;
+ pages => [@pages] };
+ return @ret if @ret >= $num;
$state='header';
$message=$rev=$user=$when=undef;
$list.="<br>\n";
$list.="changed ".$change->{when}." by ".
htmllink("index", $change->{user}).
- ": <i>".$change->{message}."<br>\n";
+ ": <i>".$change->{message}."</i><br>\n";
$list.="</li>\n";
}
$list.="</ul>\n";