comparison mercurial/patch.py @ 3886:abaee83ce0a6

Replace demandload with new demandimport
author Matt Mackall <mpm@selenic.com>
date Wed, 13 Dec 2006 13:27:09 -0600
parents 9e248cfd8b94
children 6b4127c7d52a
comparison
equal deleted inserted replaced
3885:1e0b94cfba0e 3886:abaee83ce0a6
3 # Copyright 2006 Brendan Cully <brendan@kublai.com> 3 # Copyright 2006 Brendan Cully <brendan@kublai.com>
4 # 4 #
5 # This software may be used and distributed according to the terms 5 # This software may be used and distributed according to the terms
6 # of the GNU General Public License, incorporated herein by reference. 6 # of the GNU General Public License, incorporated herein by reference.
7 7
8 from demandload import demandload
9 from i18n import gettext as _ 8 from i18n import gettext as _
10 from node import * 9 from node import *
11 demandload(globals(), "base85 cmdutil mdiff util") 10 import base85, cmdutil, mdiff, util
12 demandload(globals(), "cStringIO email.Parser errno os popen2 re shutil sha") 11 import cStringIO, email.Parser, errno, os, popen2, re, shutil, sha
13 demandload(globals(), "sys tempfile zlib") 12 import sys, tempfile, zlib
14 13
15 # helper functions 14 # helper functions
16 15
17 def copyfile(src, dst, basedir=None): 16 def copyfile(src, dst, basedir=None):
18 if not basedir: 17 if not basedir: