]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/svn.pm
Revert "comment: Don't show comments of subpages on parent pages. (Fixes bug introduc...
[ikiwiki.git] / IkiWiki / Plugin / svn.pm
index f1e608408b4ff919d9adf02793556fb1169c9df0..faaf567d578d920bebfda41927c0c7e9946488d0 100644 (file)
@@ -345,8 +345,9 @@ sub rcs_recentchanges ($) {
        return @ret;
 }
 
-sub rcs_diff ($) {
+sub rcs_diff ($;$) {
        my $rev=IkiWiki::possibly_foolish_untaint(int(shift));
+       my $maxlines=shift;
        return `svnlook diff $config{svnrepo} -r$rev --no-diff-deleted`;
 }
 
@@ -366,7 +367,7 @@ sub findtimes ($) {
                
        my $child = open(SVNLOG, "-|");
        if (! $child) {
-               exec("svn", "log", $file) || error("svn log $file failed to run");
+               exec("svn", "log", "$config{srcdir}/$file") || error("svn log failed to run");
        }
 
        my ($cdate, $mdate);
@@ -376,10 +377,10 @@ sub findtimes ($) {
                        $mdate=$1 unless defined $mdate;
                }
        }
-       close SVNLOG || error "svn log $file exited $?";
+       close SVNLOG || error "svn log exited $?";
 
        if (! defined $cdate) {
-               error "failed to parse svn log for $file\n";
+               error "failed to parse svn log for $file";
        }
                
        eval q{use Date::Parse};