mercurial/hgweb.py
changeset 1545 d69070c2547a
parent 1541 bf4e7ef08741
child 1554 68ec7b9e09a4
equal deleted inserted replaced
1544:b3184bea3eb3 1545:d69070c2547a
   949     if use_ipv6:
   949     if use_ipv6:
   950         return IPv6HTTPServer((address, port), hgwebhandler)
   950         return IPv6HTTPServer((address, port), hgwebhandler)
   951     else:
   951     else:
   952         return BaseHTTPServer.HTTPServer((address, port), hgwebhandler)
   952         return BaseHTTPServer.HTTPServer((address, port), hgwebhandler)
   953 
   953 
   954 def server(path, name, templates, address, port, use_ipv6=False,
       
   955            accesslog=sys.stdout, errorlog=sys.stderr):
       
   956     httpd = create_server(path, name, templates, address, port, use_ipv6,
       
   957                           accesslog, errorlog) # XXX wrong param count
       
   958     httpd.serve_forever()
       
   959 
       
   960 # This is a stopgap
   954 # This is a stopgap
   961 class hgwebdir:
   955 class hgwebdir:
   962     def __init__(self, config):
   956     def __init__(self, config):
   963         def cleannames(items):
   957         def cleannames(items):
   964             return [(name.strip('/'), path) for name, path in items]
   958             return [(name.strip('/'), path) for name, path in items]