Mercurial > public > mercurial-scm > hg
comparison mercurial/changegroup.py @ 3877:abaee83ce0a6
Replace demandload with new demandimport
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Dec 2006 13:27:09 -0600 |
parents | 8c24b6fd5866 |
children | 6b4127c7d52a |
comparison
equal
deleted
inserted
replaced
3876:1e0b94cfba0e | 3877:abaee83ce0a6 |
---|---|
4 Copyright 2006 Matt Mackall <mpm@selenic.com> | 4 Copyright 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 | |
9 from i18n import gettext as _ | 10 from i18n import gettext as _ |
10 from demandload import * | 11 import struct, os, bz2, zlib, util, tempfile |
11 demandload(globals(), "struct os bz2 zlib util tempfile") | |
12 | 12 |
13 def getchunk(source): | 13 def getchunk(source): |
14 """get a chunk from a changegroup""" | 14 """get a chunk from a changegroup""" |
15 d = source.read(4) | 15 d = source.read(4) |
16 if not d: | 16 if not d: |