/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/store/text.py

[merge] indented log and x-bit fix from robert

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
    def __len__(self):
145
145
        return len(list(self._iter_relpath()))
146
146
 
147
 
    def __getitem__(self, fileid):
148
 
        """Returns a file reading from a particular entry."""
149
 
        fn = self._relpath(fileid)
150
 
        # This will throw if the file doesn't exist.
151
 
        try:
152
 
            f = self._transport.get(fn)
153
 
        except:
154
 
            raise KeyError('This store (%s) does not contain %s' % (self, fileid))
155
 
 
156
 
        return f
157
 
            
158
 
 
159
147
    def total_size(self):
160
148
        """Return (count, bytes)
161
149