equal
deleted
inserted
replaced
25 server, |
25 server, |
26 ) |
26 ) |
27 |
27 |
28 |
28 |
29 def hgweb(config, name=None, baseui=None): |
29 def hgweb(config, name=None, baseui=None): |
30 '''create an hgweb wsgi object |
30 """create an hgweb wsgi object |
31 |
31 |
32 config can be one of: |
32 config can be one of: |
33 - repo object (single repo view) |
33 - repo object (single repo view) |
34 - path to repo (single repo view) |
34 - path to repo (single repo view) |
35 - path to config file (multi-repo view) |
35 - path to config file (multi-repo view) |
36 - dict of virtual:real pairs (multi-repo view) |
36 - dict of virtual:real pairs (multi-repo view) |
37 - list of virtual:real tuples (multi-repo view) |
37 - list of virtual:real tuples (multi-repo view) |
38 ''' |
38 """ |
39 |
39 |
40 if isinstance(config, pycompat.unicode): |
40 if isinstance(config, pycompat.unicode): |
41 raise error.ProgrammingError( |
41 raise error.ProgrammingError( |
42 b'Mercurial only supports encoded strings: %r' % config |
42 b'Mercurial only supports encoded strings: %r' % config |
43 ) |
43 ) |