- push @ret, {rev => $rev, user => $user,
- date => $when, message => $message,
- pages => [@pages]},
- last if @ret >= $num;
+ push @ret, { rev => $rev, user => $user,
+ when => $when, message => $message,
+ pages => [@pages] } if @pages;
+ return @ret if @ret >= $num;