diff -r c6f3ff294fe0 -r 9c8bbae02e9c mercurial/templatefilters.py --- 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: