Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 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 |
comparison
equal
deleted
inserted
replaced
1138:51f26e856f3d | 1139:916bb2849c4c |
---|---|
945 repo = repository(ui(), path) | 945 repo = repository(ui(), path) |
946 get = repo.ui.config | 946 get = repo.ui.config |
947 | 947 |
948 url = os.environ["REQUEST_URI"] + "/" + name | 948 url = os.environ["REQUEST_URI"] + "/" + name |
949 url = url.replace("//", "/") | 949 url = url.replace("//", "/") |
950 changes = repo.changelog.read(repo.changelog.tip()) | |
951 | 950 |
952 yield dict(contact=get("web", "contact") or | 951 yield dict(contact=get("web", "contact") or |
953 get("web", "author", "unknown"), | 952 get("web", "author", "unknown"), |
954 name=get("web", "name", name), | 953 name=get("web", "name", name), |
955 url=url, | 954 url=url, |
956 parity=parity, | 955 parity=parity, |
957 shortdesc=get("web", "description", "unknown"), | 956 shortdesc=get("web", "description", "unknown"), |
958 lastupdate=float(changes[2].split(' ')[0])) | 957 lastupdate=os.stat(os.path.join(path, ".hg", |
958 "00changelog.d")).st_mtime) | |
959 | 959 |
960 parity = 1 - parity | 960 parity = 1 - parity |
961 | 961 |
962 try: | 962 try: |
963 virtual = os.environ["PATH_INFO"] | 963 virtual = os.environ["PATH_INFO"] |