Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/archival.py @ 3886:abaee83ce0a6
Replace demandload with new demandimport
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Dec 2006 13:27:09 -0600 |
parents | 1d2fdea875bc |
children | 6b4127c7d52a |
comparison
equal
deleted
inserted
replaced
3885:1e0b94cfba0e | 3886:abaee83ce0a6 |
---|---|
3 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> | 3 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> |
4 # | 4 # |
5 # This software may be used and distributed according to the terms of | 5 # This software may be used and distributed according to the terms of |
6 # the GNU General Public License, incorporated herein by reference. | 6 # the GNU General Public License, incorporated herein by reference. |
7 | 7 |
8 from demandload import * | |
9 from i18n import gettext as _ | 8 from i18n import gettext as _ |
10 from node import * | 9 from node import * |
11 demandload(globals(), 'cStringIO os stat tarfile time util zipfile') | 10 import cStringIO, os, stat, tarfile, time, util, zipfile |
12 | 11 |
13 def tidyprefix(dest, prefix, suffixes): | 12 def tidyprefix(dest, prefix, suffixes): |
14 '''choose prefix to use for names in archive. make sure prefix is | 13 '''choose prefix to use for names in archive. make sure prefix is |
15 safe for consumers.''' | 14 safe for consumers.''' |
16 | 15 |