~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/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 cStringIO import StringIO
31
31
from stat import ST_SIZE
32
32
 
33
 
class TextStore(bzrlib.store.Store):
 
33
 
 
34
class TextStore(bzrlib.store.TransportStore):
34
35
    """Store that holds files indexed by unique names.
35
36
 
36
37
    Files can be added, but not modified once they are in.  Typically
38
39
    such as a UUID.
39
40
 
40
41
    Files are stored uncompressed, with no delta compression.
41
 
 
42
42
    """
43
43
 
44
 
    def __init__(self, basedir):
45
 
        super(TextStore, self).__init__(basedir)
 
44
    def __init__(self, transport):
 
45
        super(TextStore, self).__init__(transport)
46
46
 
47
47
    def _check_fileid(self, fileid):
48
48
        if not isinstance(fileid, basestring):
191
191
                
192
192
        return count, total
193
193
 
 
194
 
194
195
class ScratchTextStore(TextStore):
195
196
    """Self-destructing test subclass of TextStore.
196
197