[PATCH 1 of 6] Reverted change 51f26e856f3d: Reading changelogs is too slow

Thomas Arendsen Hein thomas at intevation.de
Mon Aug 29 00:43:57 CDT 2005


# HG changeset patch
# User Thomas Arendsen Hein <thomas at intevation.de>
# Node ID 916bb2849c4c6594460557da8630957e364cdc33
# Parent  51f26e856f3d42c3bb04ac7544a50fbe2625729d
Reverted change 51f26e856f3d: Reading changelogs is too slow.

diff -r 51f26e856f3d -r 916bb2849c4c mercurial/hgweb.py
--- a/mercurial/hgweb.py	Sun Aug 28 17:50:13 2005
+++ b/mercurial/hgweb.py	Mon Aug 29 05:07:07 2005
@@ -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
 


More information about the Mercurial mailing list