# HG changeset patch # User mpm@selenic.com # Date 1117471320 28800 # Node ID b98bcf66dd9d69fffb32994d5b878fbbccb2c2d9 # Parent 4ec26766be83dabc5b85f258ba1277c4738eed6f hgweb: make age() smarter -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hgweb: make age() smarter manifest hash: 3aa19b2960d81843e573a8ce79a242defeb80f6a -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCm0JYywK+sNU5EO8RAvLUAKCJbWqvnzfirS64LbaWbBaWlkfbfACcCyGq Y9UMZRGDBGCEIVu9f/F/F6U= =+ULo -----END PGP SIGNATURE----- diff -r 4ec26766be83 -r b98bcf66dd9d mercurial/hgweb.py --- a/mercurial/hgweb.py Mon May 30 08:28:02 2005 -0800 +++ b/mercurial/hgweb.py Mon May 30 08:42:00 2005 -0800 @@ -40,7 +40,7 @@ for t, s in scales: n = delta / s - if n >= 1: return fmt(t, n) + if n >= 2 or s == 1: return fmt(t, n) def nl2br(text): return text.replace('\n', '
')