* mercurial: Fix rcs_getctime (thanks, bma)

master
joey 2007-08-29 02:16:45 +00:00
parent 5b8e1cc369
commit 67c6ff9b08
3 changed files with 6 additions and 7 deletions

View File

@ -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);

3
debian/changelog vendored
View File

@ -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

View File

@ -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";