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): |