Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_mod.py @ 3877:abaee83ce0a6
Replace demandload with new demandimport
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Dec 2006 13:27:09 -0600 |
parents | f7dee427cd14 |
children | 57b797601b61 |
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 import os | 9 from mercurial import demandimport; demandimport.enable() |
10 from mercurial.demandload import demandload | 10 import os, mimetools, cStringIO |
11 demandload(globals(), "mimetools cStringIO") | |
12 demandload(globals(), "mercurial:ui,hg,util,templater") | |
13 demandload(globals(), "mercurial.hgweb.hgweb_mod:hgweb") | |
14 demandload(globals(), "mercurial.hgweb.common:get_mtime,staticfile,style_map") | |
15 from mercurial.i18n import gettext as _ | 11 from mercurial.i18n import gettext as _ |
12 from mercurial import ui, hg, util, templater | |
13 from common import get_mtime, staticfile, style_map | |
14 from hgweb_mod import hgweb | |
16 | 15 |
17 # This is a stopgap | 16 # This is a stopgap |
18 class hgwebdir(object): | 17 class hgwebdir(object): |
19 def __init__(self, config): | 18 def __init__(self, config): |
20 def cleannames(items): | 19 def cleannames(items): |