Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 2356:2db831b33e8f
Final stage of the hgweb split up.
hgweb and hgwebdir now have their own modules.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Wed, 31 May 2006 10:42:44 -0700 |
parents | eb08fb4d41e1 |
children | 482d3fb47d80 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed May 31 08:03:29 2006 -0700 +++ b/mercurial/commands.py Wed May 31 10:42:44 2006 -0700 @@ -10,9 +10,11 @@ from i18n import gettext as _ demandload(globals(), "os re sys signal shutil imp urllib pdb") demandload(globals(), "fancyopts ui hg util lock revlog templater bundlerepo") -demandload(globals(), "fnmatch hgweb mdiff random signal tempfile time") +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") class UnknownCommand(Exception): """Exception raised if command is not in the command table.""" @@ -2542,7 +2544,7 @@ os._exit(0) try: - httpd = hgweb.create_server(ui, repo, hgweb.hgwebdir, hgweb.hgweb) + httpd = create_server(ui, repo, hgwebdir, hgweb) except socket.error, inst: raise util.Abort(_('cannot start server: ') + inst.args[1])