mercurial/hgweb.py
changeset 1260 4603eef60237
parent 1219 56582bb2b869
child 1275 a1a84dd489ff
--- a/mercurial/hgweb.py	Thu Sep 15 03:00:10 2005 -0500
+++ b/mercurial/hgweb.py	Thu Sep 15 14:05:48 2005 -0500
@@ -964,8 +964,9 @@
                 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,