changeset 1139:916bb2849c4c

Reverted change 51f26e856f3d: Reading changelogs is too slow.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 29 Aug 2005 07:07:07 +0200
parents 51f26e856f3d
children 04d52b446e5e
files mercurial/hgweb.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb.py	Sun Aug 28 19:50:13 2005 +0200
+++ b/mercurial/hgweb.py	Mon Aug 29 07:07:07 2005 +0200
@@ -947,7 +947,6 @@
 
                 url = os.environ["REQUEST_URI"] + "/" + name
                 url = url.replace("//", "/")
-                changes = repo.changelog.read(repo.changelog.tip())
 
                 yield dict(contact=get("web", "contact") or
                                    get("web", "author", "unknown"),
@@ -955,7 +954,8 @@
                            url=url,
                            parity=parity,
                            shortdesc=get("web", "description", "unknown"),
-                           lastupdate=float(changes[2].split(' ')[0]))
+                           lastupdate=os.stat(os.path.join(path, ".hg",
+                                                "00changelog.d")).st_mtime)
 
                 parity = 1 - parity