/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/repository.py

  • Committer: Robert Collins
  • Date: 2009-02-20 08:26:50 UTC
  • mto: This revision was merged to the branch mainline in revision 4028.
  • Revision ID: robertc@robertcollins.net-20090220082650-wmzch4en338bymkm
Cherrypick and polish the RemoteSink for streaming push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3472
3472
    
3473
3473
    def _autopack(self):
3474
3474
        self.target.autopack()
 
3475
 
 
3476
    @needs_write_lock
 
3477
    def fetch(self, revision_id=None, pb=None, find_ghosts=False):
 
3478
        """See InterRepository.fetch()."""
 
3479
        # Always fetch using the generic streaming fetch code, to allow
 
3480
        # streaming fetching into remote servers.
 
3481
        from bzrlib.fetch import RepoFetcher
 
3482
        fetcher = RepoFetcher(self.target, self.source, revision_id,
 
3483
                              pb, find_ghosts)
 
3484
        self.target.autopack()
 
3485
        return fetcher.count_copied, fetcher.failed_revisions
3475
3486
        
3476
3487
    def _get_target_pack_collection(self):
3477
3488
        return self.target._real_repository._pack_collection