summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-29 02:16:45 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-29 02:16:45 +0000
commit67c6ff9b086d90b2dd777a722b26b05daa648479 (patch)
tree6939edd05fd96ea920e6b966af7518f0aec15c89
parent5b8e1cc3698300ff2b19ba271e8221e700deee62 (diff)
* mercurial: Fix rcs_getctime (thanks, bma)
-rw-r--r--IkiWiki/Rcs/mercurial.pm3
-rw-r--r--debian/changelog3
-rwxr-xr-xt/mercurial.t7
3 files changed, 6 insertions, 7 deletions
diff --git a/IkiWiki/Rcs/mercurial.pm b/IkiWiki/Rcs/mercurial.pm
index 8a3329395..a892ee975 100644
--- a/IkiWiki/Rcs/mercurial.pm
+++ b/IkiWiki/Rcs/mercurial.pm
@@ -160,7 +160,8 @@ sub rcs_getctime ($) { #{{{
# XXX filename passes through the shell here, should try to avoid
# that just in case
- my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v", "-l", '1', $file);
+ my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v", "-l", '1',
+ "$config{srcdir}/$file");
open (my $out, "@cmdline |");
my @log = mercurial_log($out);
diff --git a/debian/changelog b/debian/changelog
index 00f279e7a..8a99a006c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,8 +16,9 @@ ikiwiki (2.7) UNRELEASED; urgency=low
* Turn on allow_loose_quotes in the table plugin's Text::CSV object,
so that links from wikilinks don't confuse the parser.
* mercurial: Pass --style default to hg log to ensure right format is used.
+ * mercurial: Fix rcs_getctime (thanks, bma)
- -- Joey Hess <joeyh@debian.org> Tue, 28 Aug 2007 22:00:29 -0400
+ -- Joey Hess <joeyh@debian.org> Tue, 28 Aug 2007 22:15:52 -0400
ikiwiki (2.6.1) unstable; urgency=low
diff --git a/t/mercurial.t b/t/mercurial.t
index 7d6c2eacc..da4e2beaa 100755
--- a/t/mercurial.t
+++ b/t/mercurial.t
@@ -56,10 +56,7 @@ is($changes[0]{pages}[0]{"page"}, "test2.mdwn");
is($changes[1]{pages}[0]{"page"}, "test1.mdwn");
-TODO: {
- local $TODO = "hg behavior change seems to have broken this";
- my $ctime = IkiWiki::rcs_getctime("test2.mdwn");
- is($ctime, 0);
-}
+my $ctime = IkiWiki::rcs_getctime("test2.mdwn");
+is($ctime, 0);
system "rm -rf $dir";