~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/text.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-29 21:13:03 UTC
  • mto: (1393.1.12)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050929211303-7f1f9bf969d65dc3
All tests pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    the hash is used as the name, or something else known to be unique,
38
38
    such as a UUID.
39
39
 
40
 
    Files are stored gzip compressed, with no delta compression.
 
40
    Files are stored uncompressed, with no delta compression.
41
41
 
42
42
    """
43
43
 
128
128
        rel_paths = [self._relpath(fid) for fid in fileids]
129
129
        is_requested = []
130
130
 
131
 
        #mutter('CompressedTextStore.get(permit_failure=%s)' % permit_failure)
132
131
        if permit_failure:
133
132
            existing_paths = []
134
133
            for path, has in zip(rel_paths,
150
149
            while not is_requested[count]:
151
150
                yield None
152
151
                count += 1
153
 
            if hasattr(f, 'tell'):
154
 
                yield gzip.GzipFile(mode='rb', fileobj=f)
155
 
            else:
156
 
                sio = StringIO(f.read())
157
 
                yield gzip.GzipFile(mode='rb', fileobj=sio)
 
152
            yield f
158
153
            count += 1
159
154
 
160
155
        while count < len(is_requested):