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

login
register
mail settings
Submitter phabricator
Date Oct. 17, 2017, 12:39 p.m.
Message ID <a15f000344d722c29ecba9fa93588aa0@localhost.localdomain>
Download mbox | patch
Permalink /patch/25094/
State Not Applicable
Headers show

Comments

phabricator - Oct. 17, 2017, 12:39 p.m.
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




To: durin42, #hg-reviewers, ryanmce
Cc: ryanmce, mercurial-devel

Patch

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: