~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/text.py

  • Committer: Robert Collins
  • Date: 2005-10-03 01:15:02 UTC
  • mfrom: (1092.2.28)
  • Revision ID: robertc@robertcollins.net-20051003011502-f579a509a136b774
mergeĀ fromĀ baz2bzr

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