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"] |