comparison mercurial/hgweb/hgweb_mod.py @ 37746:b29f490eb904

hgweb_mod: inform hgweb class about paths actually being bytes Differential Revision: https://phab.mercurial-scm.org/D3355
author Augie Fackler <augie@google.com>
date Fri, 13 Apr 2018 22:36:54 -0400
parents 034a422aeaff
children 11ee9bf24791
comparison
equal deleted inserted replaced
37745:42567ffa10a2 37746:b29f490eb904
206 206
207 Some servers are multi-threaded. On these servers, there may 207 Some servers are multi-threaded. On these servers, there may
208 be multiple active threads inside __call__. 208 be multiple active threads inside __call__.
209 """ 209 """
210 def __init__(self, repo, name=None, baseui=None): 210 def __init__(self, repo, name=None, baseui=None):
211 if isinstance(repo, str): 211 if isinstance(repo, bytes):
212 if baseui: 212 if baseui:
213 u = baseui.copy() 213 u = baseui.copy()
214 else: 214 else:
215 u = uimod.ui.load() 215 u = uimod.ui.load()
216 r = hg.repository(u, repo) 216 r = hg.repository(u, repo)