~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/vf_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-08 11:20:31 UTC
  • mto: This revision was merged to the branch mainline in revision 5844.
  • Revision ID: jelmer@samba.org-20110508112031-dqa1cw1gjhqsj2zr
Move vf-specific gather_stats bits to vf_repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1190
1190
        # rather copying them?
1191
1191
        self._safe_to_return_from_cache = False
1192
1192
 
 
1193
    def gather_stats(self):
 
1194
        """See Repository.gather_stats()."""
 
1195
        result = super(VersionedFileRepository, self).gather_stats()
 
1196
        # now gather global repository information
 
1197
        # XXX: This is available for many repos regardless of listability.
 
1198
        if self.user_transport.listable():
 
1199
            # XXX: do we want to __define len__() ?
 
1200
            # Maybe the versionedfiles object should provide a different
 
1201
            # method to get the number of keys.
 
1202
            result['revisions'] = len(self.revisions.keys())
 
1203
            # result['size'] = t
 
1204
        return result
 
1205
 
 
1206
 
1193
1207
    def get_commit_builder(self, branch, parents, config, timestamp=None,
1194
1208
                           timezone=None, committer=None, revprops=None,
1195
1209
                           revision_id=None, lossy=False):