D1134: hgweb: correct an earlier error of mine - `start` should be bytes
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Tue Oct 17 02:56:12 UTC 2017
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Gets hgweb very close to working.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1134
AFFECTED FILES
mercurial/hgweb/hgweb_mod.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -187,7 +187,7 @@
if style == styles[0]:
vars['style'] = style
- start = r'&' if req.url[-1] == r'?' else r'?'
+ start = '&' if req.url[-1] == r'?' else '?'
sessionvars = webutil.sessionvars(vars, start)
if not self.reponame:
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list