diff mercurial/commands.py @ 2392:8238a3f039e6

Adjusting hgweb splitup to be a little cleaner.
author Eric Hopper <hopper@omnifarious.org>
date Fri, 02 Jun 2006 08:25:02 -0700
parents 482d3fb47d80
children 8d44649df03b
line wrap: on
line diff
--- 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])