~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/compressed_text.py

  • Committer: Aaron Bentley
  • Date: 2005-10-04 04:32:32 UTC
  • mfrom: (1185.12.6)
  • mto: (1185.12.13)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: aaron.bentley@utoronto.ca-20051004043231-40302a149769263b
merged my own changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from StringIO import StringIO
31
31
from stat import ST_SIZE
32
32
 
33
 
class CompressedTextStore(bzrlib.store.Store):
 
33
class CompressedTextStore(bzrlib.store.TransportStore):
34
34
    """Store that holds files indexed by unique names.
35
35
 
36
36
    Files can be added, but not modified once they are in.  Typically
56
56
    'goodbye'
57
57
    """
58
58
 
59
 
    def __init__(self, basedir):
60
 
        super(CompressedTextStore, self).__init__(basedir)
 
59
    def __init__(self, transport):
 
60
        super(CompressedTextStore, self).__init__(transport)
61
61
 
62
62
    def _check_fileid(self, fileid):
63
63
        if '\\' in fileid or '/' in fileid:
242
242
                
243
243
        return count, total
244
244
 
 
245
 
245
246
class ScratchCompressedTextStore(CompressedTextStore):
246
247
    """Self-destructing test subclass of CompressedTextStore.
247
248