]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/mercurial.pm
create translated underlays in mdwn format
[ikiwiki.git] / IkiWiki / Plugin / mercurial.pm
index 6c4855e5707016dd9e80776b22f795b15a182355..11fdec529373c6b430a8e77bebb2c0a3aa6972b7 100644 (file)
@@ -236,7 +236,7 @@ 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', 
+       my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v",
                "--style", "default", "$config{srcdir}/$file");
        open (my $out, "@cmdline |");
 
@@ -249,7 +249,7 @@ sub rcs_getctime ($) {
        eval q{use Date::Parse};
        error($@) if $@;
        
-       my $ctime = str2time($log[0]->{"date"});
+       my $ctime = str2time($log[$#log]->{"date"});
        return $ctime;
 }