Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgweb_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 | 713e35dcc321 |
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 import os, mimetypes, re, zlib, ConfigParser, mimetools, cStringIO, sys |
10 import os.path | 10 import tempfile, urllib, bz2 |
11 import mimetypes | |
12 from mercurial.demandload import demandload | |
13 demandload(globals(), "re zlib ConfigParser mimetools cStringIO sys tempfile") | |
14 demandload(globals(), 'urllib bz2') | |
15 demandload(globals(), "mercurial:mdiff,ui,hg,util,archival,streamclone,patch") | |
16 demandload(globals(), "mercurial:revlog,templater") | |
17 demandload(globals(), "mercurial.hgweb.common:get_mtime,staticfile,style_map") | |
18 from mercurial.node import * | 11 from mercurial.node import * |
19 from mercurial.i18n import gettext as _ | 12 from mercurial.i18n import gettext as _ |
13 from mercurial import mdiff, ui, hg, util, archival, streamclone, patch | |
14 from mercurial import revlog, templater | |
15 from common import get_mtime, staticfile, style_map | |
20 | 16 |
21 def _up(p): | 17 def _up(p): |
22 if p[0] != "/": | 18 if p[0] != "/": |
23 p = "/" + p | 19 p = "/" + p |
24 if p[-1] == "/": | 20 if p[-1] == "/": |