mercurial/commands.py
changeset 2392 8238a3f039e6
parent 2362 482d3fb47d80
child 2396 8d44649df03b
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -13,8 +13,7 @@ demandload(globals(), "fancyopts ui hg u
 demandload(globals(), "fnmatch mdiff random signal tempfile time")
 demandload(globals(), "traceback errno socket version struct atexit sets bz2")
 demandload(globals(), "archival changegroup")
-demandload(globals(), "mercurial.hgweb.server:create_server")
-demandload(globals(), "mercurial.hgweb:hgweb,hgwebdir")
+demandload(globals(), "hgweb.server")
 
 class UnknownCommand(Exception):
     """Exception raised if command is not in the command table."""
@@ -2544,7 +2543,7 @@ def serve(ui, repo, **opts):
         os._exit(0)
 
     try:
-        httpd = create_server(ui, repo, hgwebdir, hgweb)
+        httpd = hgweb.server.create_server(ui, repo)
     except socket.error, inst:
         raise util.Abort(_('cannot start server: ') + inst.args[1])