From: joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Date: Thu, 21 Dec 2006 19:40:11 +0000 (+0000)
Subject: * Patch from Emanuele Aina to fix modification time code in mercurual
X-Git-Tag: 1.36~20
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0dc8b912269e8df8422e5b6baab4871d1bb510c0;p=ikiwiki.git

* Patch from Emanuele Aina to fix modification time code in mercurual
  backend.
---

diff --git a/IkiWiki/Rcs/mercurial.pm b/IkiWiki/Rcs/mercurial.pm
index 67002ac57..b7b15632a 100644
--- a/IkiWiki/Rcs/mercurial.pm
+++ b/IkiWiki/Rcs/mercurial.pm
@@ -138,7 +138,7 @@ sub rcs_recentchanges ($) { #{{{
 			rev        => $info->{"changeset"},
 			user       => $user,
 			committype => "mercurial",
-			when       => str2time($info->{"date"}),
+			when       => time - str2time($info->{"date"}),
 			message    => [@message],
 			pages      => [@pages],
 		};
diff --git a/debian/changelog b/debian/changelog
index 558e156c2..80edfc972 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,8 +16,10 @@ ikiwiki (1.36) UNRELEASED; urgency=low
   * Applied a rather old patch from Recai to fix the "pruning is too strict"
     issue. Now you can have wiki source directories inside dotdirs and the
     like, if you want.
+  * Patch from Emanuele Aina to fix modification time code in mercurual
+    backend.
 
- -- Joey Hess <joeyh@debian.org>  Thu, 21 Dec 2006 13:54:24 -0500
+ -- Joey Hess <joeyh@debian.org>  Thu, 21 Dec 2006 14:39:26 -0500
 
 ikiwiki (1.35) unstable; urgency=low