~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-24 00:26:38 UTC
  • Revision ID: mbp@sourcefrog.net-20050324002638-75eca802ac9caa0c
show_info: Show number of entries in the branch stores

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
    def __iter__(self):
111
111
        return iter(os.listdir(self._basedir))
112
112
 
 
113
    def __len__(self):
 
114
        return len(os.listdir(self._basedir))
 
115
 
113
116
    def __getitem__(self, fileid):
114
117
        """Returns a file reading from a particular entry."""
115
118
        return file(self._path(fileid), 'rb')