comparison 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
comparison
equal deleted inserted replaced
1259:f75567782aba 1260:4603eef60237
962 get = u.config 962 get = u.config
963 963
964 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name]) 964 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
965 .replace("//", "/")) 965 .replace("//", "/"))
966 966
967 yield dict(contact=get("web", "contact") or 967 yield dict(contact=(get("ui", "username") or # preferred
968 get("web", "author", "unknown"), 968 get("web", "contact") or # deprecated
969 get("web", "author", "unknown")), # also
969 name=get("web", "name", name), 970 name=get("web", "name", name),
970 url=url, 971 url=url,
971 parity=parity, 972 parity=parity,
972 shortdesc=get("web", "description", "unknown"), 973 shortdesc=get("web", "description", "unknown"),
973 lastupdate=os.stat(os.path.join(path, ".hg", 974 lastupdate=os.stat(os.path.join(path, ".hg",