~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Martin Pool
  • Date: 2008-07-31 06:26:44 UTC
  • mto: This revision was merged to the branch mainline in revision 3597.
  • Revision ID: mbp@sourcefrog.net-20080731062644-aw6t3c55qi9sz0a6
Better comment about fetching to or from stacked repositories

Show diffs side-by-side

added added

removed removed

Lines of Context:
2753
2753
        """See InterRepository.fetch()."""
2754
2754
        if (len(self.source._fallback_repositories) > 0 or
2755
2755
            len(self.target._fallback_repositories) > 0):
2756
 
            # the pack fetcher assumes it can just copy pack binary data, but
2757
 
            # that may not be safe if there are fallback repositories on
2758
 
            # either side; instead we look at the revisions and deltas one by
2759
 
            # one.
 
2756
            # The pack layer is not aware of fallback repositories, so when
 
2757
            # fetching from a stacked repository or into a stacked repository
 
2758
            # we use the generic fetch logic which uses the VersionedFiles
 
2759
            # attributes on repository.
2760
2760
            from bzrlib.fetch import RepoFetcher
2761
2761
            fetcher = RepoFetcher(self.target, self.source, revision_id,
2762
2762
                                  pb, find_ghosts)