mercurial/templatefilters.py
changeset 9722 4d9dea174b84
parent 9721 1d75c683ada1
child 10263 25e572394f5c
--- a/mercurial/templatefilters.py	Thu Nov 05 14:44:29 2009 +0100
+++ b/mercurial/templatefilters.py	Thu Nov 05 15:19:54 2009 +0100
@@ -40,6 +40,9 @@
         return 'in the future'
 
     delta = max(1, int(now - then))
+    if delta > agescales[0][1] * 2:
+        return util.shortdate(date)
+
     for t, s in agescales:
         n = delta // s
         if n >= 2 or s == 1: