D1134: hgweb: correct an earlier error of mine - `start` should be bytes

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Tue Oct 17 08:39:59 EDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGafd7fd950f6e: hgweb: correct an earlier error of mine - `start` should be bytes (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1134?vs=2884&id=2908

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, ryanmce
Cc: ryanmce, mercurial-devel


More information about the Mercurial-devel mailing list