aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/svn.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-23 19:32:53 -0400
committerJoey Hess <joey@kitenet.net>2010-06-23 19:32:53 -0400
commitd8e4b51a41a9507584d56946d0eae0e5cef6d6f5 (patch)
treeb0aeaa8fb5116d5869f8758792c17b94eb72fa83 /IkiWiki/Plugin/svn.pm
parentecdfd1b8644bc926db008054ab6192e18351afed (diff)
downloadikiwiki-d8e4b51a41a9507584d56946d0eae0e5cef6d6f5.tar
ikiwiki-d8e4b51a41a9507584d56946d0eae0e5cef6d6f5.tar.gz
rcs_getctime and rcs_getmtime take relative filenames
There was some confusion about whether the filename was relative to srcdir or not. Some test cases, and the bzr plugin assumed it was relative to the srcdir. Most everything else assumed it was absolute. Changed it to relative, for consistency with the rest of the rcs_ functions.
Diffstat (limited to 'IkiWiki/Plugin/svn.pm')
-rw-r--r--IkiWiki/Plugin/svn.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/svn.pm b/IkiWiki/Plugin/svn.pm
index f1e608408..9cf82b5db 100644
--- a/IkiWiki/Plugin/svn.pm
+++ b/IkiWiki/Plugin/svn.pm
@@ -366,7 +366,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 +376,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};