~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/compressed_text.py

  • Committer: Martin Pool
  • Date: 2005-10-04 02:27:27 UTC
  • mfrom: (1399)
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1400.
  • Revision ID: mbp@sourcefrog.net-20051004022727-aee7064c62e039a7
[merge] merge robertc's format5 integration

 - test status on specific files
 - track x bit
 - baz2bzr fixes
 - remotebranch fixes

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