Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG42567ffa10a2: hgweb: inform hgweb.hgweb() entrypoint that paths should be 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/__init__.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 |
config can be one of: | config can be one of: | ||||
- repo object (single repo view) | - repo object (single repo view) | ||||
- path to repo (single repo view) | - path to repo (single repo view) | ||||
- path to config file (multi-repo view) | - path to config file (multi-repo view) | ||||
- dict of virtual:real pairs (multi-repo view) | - dict of virtual:real pairs (multi-repo view) | ||||
- list of virtual:real tuples (multi-repo view) | - list of virtual:real tuples (multi-repo view) | ||||
''' | ''' | ||||
if ((isinstance(config, str) and not os.path.isdir(config)) or | if ((isinstance(config, bytes) and not os.path.isdir(config)) or | ||||
isinstance(config, dict) or isinstance(config, list)): | isinstance(config, dict) or isinstance(config, list)): | ||||
# create a multi-dir interface | # create a multi-dir interface | ||||
return hgwebdir_mod.hgwebdir(config, baseui=baseui) | return hgwebdir_mod.hgwebdir(config, baseui=baseui) | ||||
return hgweb_mod.hgweb(config, name=name, baseui=baseui) | return hgweb_mod.hgweb(config, name=name, baseui=baseui) | ||||
def hgwebdir(config, baseui=None): | def hgwebdir(config, baseui=None): | ||||
return hgwebdir_mod.hgwebdir(config, baseui=baseui) | return hgwebdir_mod.hgwebdir(config, baseui=baseui) | ||||