Mercurial > public > mercurial-scm > hg
comparison mercurial/changegroup.py @ 8312:b87a50b7125c
separate import lines from mercurial and general python modules
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Tue, 28 Apr 2009 17:40:46 +0200 |
parents | 8b2cd04a6e97 |
children | f48454a279b9 |
comparison
equal
deleted
inserted
replaced
8311:e0eb03bfa5af | 8312:b87a50b7125c |
---|---|
4 # | 4 # |
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2, incorporated herein by reference. | 6 # GNU General Public License version 2, incorporated herein by reference. |
7 | 7 |
8 from i18n import _ | 8 from i18n import _ |
9 import struct, os, bz2, zlib, util, tempfile | 9 import util |
10 import struct, os, bz2, zlib, tempfile | |
10 | 11 |
11 def getchunk(source): | 12 def getchunk(source): |
12 """get a chunk from a changegroup""" | 13 """get a chunk from a changegroup""" |
13 d = source.read(4) | 14 d = source.read(4) |
14 if not d: | 15 if not d: |