mercurial/hgweb.py
changeset 1139 916bb2849c4c
parent 1138 51f26e856f3d
child 1140 04d52b446e5e
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -947,7 +947,6 @@ class hgwebdir:
 
                 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 @@ class hgwebdir:
                            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