diff -r 6db536bed7ec -r b2316265a32e mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Sun Oct 01 12:12:34 2017 -0400 +++ b/mercurial/hgweb/hgweb_mod.py Thu Oct 05 14:48:31 2017 -0400 @@ -187,7 +187,7 @@ if style == styles[0]: vars['style'] = style - start = req.url[-1] == '?' and '&' or '?' + start = '&' if req.url[-1] == '?' else '?' sessionvars = webutil.sessionvars(vars, start) if not self.reponame: