~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Andrew Bennetts
  • Date: 2009-03-04 07:10:07 UTC
  • mto: (4086.1.2 hpss-integration)
  • mto: This revision was merged to the branch mainline in revision 4087.
  • Revision ID: andrew.bennetts@canonical.com-20090304071007-8iqoi1m44ypmzg2a
Rough prototype of allowing a SearchResult to be passed to fetch, and using that to improve network conversations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2218
2218
            for repo in self._fallback_repositories:
2219
2219
                repo.unlock()
2220
2220
 
 
2221
    def is_empty(self):
 
2222
        if self._fallback_repositories:
 
2223
            return False
 
2224
        else:
 
2225
            return len(self._pack_collection.names()) == 0
 
2226
 
2221
2227
 
2222
2228
class RepositoryFormatPack(MetaDirRepositoryFormat):
2223
2229
    """Format logic for pack structured repositories.