Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGb29f490eb904: hgweb_mod: inform hgweb class about paths actually being bytes
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/hgweb/hgweb_mod.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
repository. | repository. | ||||
Instances are typically used as WSGI applications. | Instances are typically used as WSGI applications. | ||||
Some servers are multi-threaded. On these servers, there may | Some servers are multi-threaded. On these servers, there may | ||||
be multiple active threads inside __call__. | be multiple active threads inside __call__. | ||||
""" | """ | ||||
def __init__(self, repo, name=None, baseui=None): | def __init__(self, repo, name=None, baseui=None): | ||||
if isinstance(repo, str): | if isinstance(repo, bytes): | ||||
if baseui: | if baseui: | ||||
u = baseui.copy() | u = baseui.copy() | ||||
else: | else: | ||||
u = uimod.ui.load() | u = uimod.ui.load() | ||||
r = hg.repository(u, repo) | r = hg.repository(u, repo) | ||||
else: | else: | ||||
# we trust caller to give us a private copy | # we trust caller to give us a private copy | ||||
r = repo | r = repo |