comparison mercurial/changegroup.py @ 2470:fe1689273f84

use demandload more.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 20 Jun 2006 23:58:21 -0700
parents 802e8a029d99
children
comparison
equal deleted inserted replaced
2459:5c5277f03887 2470:fe1689273f84
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 import struct
10 from i18n import gettext as _ 9 from i18n import gettext as _
11 from demandload import * 10 from demandload import *
12 demandload(globals(), "util") 11 demandload(globals(), "struct util")
13 12
14 def getchunk(source): 13 def getchunk(source):
15 """get a chunk from a changegroup""" 14 """get a chunk from a changegroup"""
16 d = source.read(4) 15 d = source.read(4)
17 if not d: 16 if not d: