mercurial/hgweb.py
changeset 1541 bf4e7ef08741
parent 1524 0d47bb884330
child 1545 d69070c2547a
equal deleted inserted replaced
1540:8ca9f5b17257 1541:bf4e7ef08741
   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,
   954 def server(path, name, templates, address, port, use_ipv6=False,
   955            accesslog=sys.stdout, errorlog=sys.stderr):
   955            accesslog=sys.stdout, errorlog=sys.stderr):
   956     httpd = create_server(path, name, templates, address, port, use_ipv6,
   956     httpd = create_server(path, name, templates, address, port, use_ipv6,
   957                           accesslog, errorlog)
   957                           accesslog, errorlog) # XXX wrong param count
   958     httpd.serve_forever()
   958     httpd.serve_forever()
   959 
   959 
   960 # This is a stopgap
   960 # This is a stopgap
   961 class hgwebdir:
   961 class hgwebdir:
   962     def __init__(self, config):
   962     def __init__(self, config):