mercurial/templatefilters.py
changeset 7682 9c8bbae02e9c
parent 6691 0dba955c2636
child 7948 de377b1a9a84
--- a/mercurial/templatefilters.py	Thu Jan 22 15:22:37 2009 +0100
+++ b/mercurial/templatefilters.py	Thu Jan 22 16:07:44 2009 +0100
@@ -30,8 +30,10 @@
 
     now = time.time()
     then = date[0]
+    if then > now:
+        return 'in the future'
+
     delta = max(1, int(now - then))
-
     for t, s in agescales:
         n = delta / s
         if n >= 2 or s == 1: