Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 982:8d2e24bae760
hgweb: convert index entries to list expansion style
author | mpm@selenic.com |
---|---|
date | Sat, 20 Aug 2005 13:11:36 -0700 |
parents | 4f81068ed8cd |
children | 4a988dc8d9b8 |
comparison
equal
deleted
inserted
replaced
981:4f81068ed8cd | 982:8d2e24bae760 |
---|---|
559 yield {"parity": parity, | 559 yield {"parity": parity, |
560 "path": os.path.join(path, f), | 560 "path": os.path.join(path, f), |
561 "manifest": mnode, | 561 "manifest": mnode, |
562 "basename": f[:-1]} | 562 "basename": f[:-1]} |
563 parity = 1 - parity | 563 parity = 1 - parity |
564 | 564 |
565 yield self.t("manifest", | 565 yield self.t("manifest", |
566 manifest = mnode, | 566 manifest = mnode, |
567 rev = rev, | 567 rev = rev, |
568 node = hex(node), | 568 node = hex(node), |
569 path = path, | 569 path = path, |
880 try: | 880 try: |
881 return cp2.get(sec, val) | 881 return cp2.get(sec, val) |
882 except: | 882 except: |
883 return default | 883 return default |
884 | 884 |
885 yield tmpl("indexentry", | 885 yield dict(author = get("web", "author", "unknown"), |
886 author = get("web", "author", "unknown"), | |
887 name = get("web", "name", v), | 886 name = get("web", "name", v), |
888 url = os.environ["REQUEST_URI"] + "/" + v, | 887 url = os.environ["REQUEST_URI"] + "/" + v, |
889 parity = parity, | 888 parity = parity, |
890 shortdesc = get("web", "description", "unknown"), | 889 shortdesc = get("web", "description", "unknown"), |
891 lastupdate = os.stat(os.path.join(r, ".hg", | 890 lastupdate = os.stat(os.path.join(r, ".hg", |