aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.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/Render.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/Render.pm')
-rw-r--r--IkiWiki/Render.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index aae1f90b0..a653ab2da 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -374,7 +374,7 @@ sub find_new_files ($) {
}
eval {
- my $ctime=rcs_getctime("$config{srcdir}/$file");
+ my $ctime=rcs_getctime($file);
if ($ctime > 0) {
$pagectime{$page}=$ctime;
}
@@ -384,7 +384,7 @@ sub find_new_files ($) {
}
my $mtime;
eval {
- $mtime=rcs_getmtime("$config{srcdir}/$file");
+ $mtime=rcs_getmtime($file);
};
if ($@) {
print STDERR $@;