Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/server.py @ 3877:abaee83ce0a6
Replace demandload with new demandimport
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Dec 2006 13:27:09 -0600 |
parents | 925b1816c746 |
children | a195f11ed1a2 |
comparison
equal
deleted
inserted
replaced
3876:1e0b94cfba0e | 3877:abaee83ce0a6 |
---|---|
4 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> | 4 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> |
5 # | 5 # |
6 # This software may be used and distributed according to the terms | 6 # This software may be used and distributed according to the terms |
7 # of the GNU General Public License, incorporated herein by reference. | 7 # of the GNU General Public License, incorporated herein by reference. |
8 | 8 |
9 from mercurial.demandload import demandload | 9 import os, sys, errno, urllib, BaseHTTPServer, socket, SocketServer |
10 import os, sys, errno | 10 from mercurial import ui, hg, util, templater |
11 demandload(globals(), "urllib BaseHTTPServer socket SocketServer") | 11 from hgweb_mod import hgweb |
12 demandload(globals(), "mercurial:ui,hg,util,templater") | 12 from hgwebdir_mod import hgwebdir |
13 demandload(globals(), "hgweb_mod:hgweb hgwebdir_mod:hgwebdir request:wsgiapplication") | 13 from request import wsgiapplication |
14 from mercurial.i18n import gettext as _ | 14 from mercurial.i18n import gettext as _ |
15 | 15 |
16 def _splitURI(uri): | 16 def _splitURI(uri): |
17 """ Return path and query splited from uri | 17 """ Return path and query splited from uri |
18 | 18 |