#!/usr/bin/perl
-# For subversion support.
use warnings;
use strict;
return unless -d "$config{srcdir}/.svn";
- eval q{use CGI 'escapeHTML'};
eval q{use Date::Parse};
eval q{use Time::Duration};
eval q{use XML::SAX};
my $rev = $logentry->{revision};
my $user = $logentry->{author};
- my $when=concise(ago(time - str2time($logentry->{date}, 'UTC')));
+ my $when=time - str2time($logentry->{date}, 'UTC');
foreach my $msgline (split(/\n/, $logentry->{msg})) {
- push @message, { line => escapeHTML($msgline) };
+ push @message, { line => $msgline };
}
my $committype="web";
$diffurl=~s/\[\[r1\]\]/$rev - 1/eg;
$diffurl=~s/\[\[r2\]\]/$rev/g;
push @pages, {
- link => htmllink("", "", pagename($file), 1),
+ page => pagename($file),
diffurl => $diffurl,
} if length $file;
}
push @ret, { rev => $rev,
- user => htmllink("", "", $user, 1),
+ user => $user,
committype => $committype,
when => $when,
message => [@message],
sub rcs_getctime ($) { #{{{
my $file=shift;
- eval q{use Date::Parse};
my $svn_log_infoline=qr/^r\d+\s+\|\s+[^\s]+\s+\|\s+(\d+-\d+-\d+\s+\d+:\d+:\d+\s+[-+]?\d+).*/;
return 0;
}
+ eval q{use Date::Parse};
$date=str2time($date);
debug("found ctime ".localtime($date)." for $file");
return $date;