# HG changeset patch # User Boris Feld # Date 1507688177 -7200 # Node ID c2cb6be4212fe38b0f1447b70223c1f9bcc0c588 # Parent c879fc7bd71f4055529383f84dbb21b4c03c0670 configitems: register the 'web.logourl' config diff -r c879fc7bd71f -r c2cb6be4212f mercurial/configitems.py --- a/mercurial/configitems.py Wed Oct 11 04:16:05 2017 +0200 +++ b/mercurial/configitems.py Wed Oct 11 04:16:17 2017 +0200 @@ -748,6 +748,9 @@ coreconfigitem('web', 'logoimg', default='hglogo.png', ) +coreconfigitem('web', 'logourl', + default='https://mercurial-scm.org/', +) coreconfigitem('web', 'accesslog', default='-', ) diff -r c879fc7bd71f -r c2cb6be4212f mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Wed Oct 11 04:16:05 2017 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Wed Oct 11 04:16:17 2017 +0200 @@ -168,7 +168,7 @@ port = req.env['SERVER_PORT'] port = port != default_port and (':' + port) or '' urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port) - logourl = self.config('web', 'logourl', 'https://mercurial-scm.org/') + logourl = self.config('web', 'logourl') logoimg = self.config('web', 'logoimg') staticurl = self.config('web', 'staticurl') or req.url + 'static/' if not staticurl.endswith('/'): diff -r c879fc7bd71f -r c2cb6be4212f mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Wed Oct 11 04:16:05 2017 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Wed Oct 11 04:16:17 2017 +0200 @@ -510,7 +510,7 @@ start = url[-1] == '?' and '&' or '?' sessionvars = webutil.sessionvars(vars, start) - logourl = config('web', 'logourl', 'https://mercurial-scm.org/') + logourl = config('web', 'logourl') logoimg = config('web', 'logoimg') staticurl = config('web', 'staticurl') or url + 'static/' if not staticurl.endswith('/'):