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): |