Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/hgweb.py @ 1260:4603eef60237
hgweb: use ui:username rather than web:contact
This also removes the creation of .hg/hgrc with web:contact at init time.
author | mpm@selenic.com |
---|---|
date | Thu, 15 Sep 2005 14:05:48 -0500 |
parents | 56582bb2b869 |
children | a1a84dd489ff |
line wrap: on
line diff
--- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -964,8 +964,9 @@ class hgwebdir: url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name]) .replace("//", "/")) - yield dict(contact=get("web", "contact") or - get("web", "author", "unknown"), + yield dict(contact=(get("ui", "username") or # preferred + get("web", "contact") or # deprecated + get("web", "author", "unknown")), # also name=get("web", "name", name), url=url, parity=parity,