~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/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 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