Mercurial > hg
comparison mercurial/hgweb/hgweb_mod.py @ 26421:4b0fc75f9403
urls: bulk-change primary website URLs
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 30 Sep 2015 15:43:49 -0500 |
parents | 1ffc61c4e32e |
children | 7c1b4840c2cd |
comparison
equal
deleted
inserted
replaced
26420:2fc86d92c4a9 | 26421:4b0fc75f9403 |
---|---|
124 default_port = '80' | 124 default_port = '80' |
125 | 125 |
126 port = req.env['SERVER_PORT'] | 126 port = req.env['SERVER_PORT'] |
127 port = port != default_port and (':' + port) or '' | 127 port = port != default_port and (':' + port) or '' |
128 urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port) | 128 urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port) |
129 logourl = self.config('web', 'logourl', 'http://mercurial.selenic.com/') | 129 logourl = self.config('web', 'logourl', 'https://mercurial-scm.org/') |
130 logoimg = self.config('web', 'logoimg', 'hglogo.png') | 130 logoimg = self.config('web', 'logoimg', 'hglogo.png') |
131 staticurl = self.config('web', 'staticurl') or req.url + 'static/' | 131 staticurl = self.config('web', 'staticurl') or req.url + 'static/' |
132 if not staticurl.endswith('/'): | 132 if not staticurl.endswith('/'): |
133 staticurl += '/' | 133 staticurl += '/' |
134 | 134 |