]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - IkiWiki/Rcs/mercurial.pm
change rcs_recentchanges when to absolute, not relative, time
[www/ikiwiki.git] / IkiWiki / Rcs / mercurial.pm
index a892ee97549ad28244a65b83135772373b0c67a2..13a88379c0fb2ae47ba6a4f7ebe5592c037a0484 100644 (file)
@@ -142,7 +142,7 @@ sub rcs_recentchanges ($) { #{{{
                        rev        => $info->{"changeset"},
                        user       => $user,
                        committype => "mercurial",
-                       when       => time - str2time($info->{"date"}),
+                       when       => str2time($info->{"date"}),
                        message    => [@message],
                        pages      => [@pages],
                };
@@ -161,7 +161,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', 
-               "$config{srcdir}/$file");
+               "--style", "default", "$config{srcdir}/$file");
        open (my $out, "@cmdline |");
 
        my @log = mercurial_log($out);