~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Robert Collins
  • Date: 2009-03-02 04:45:02 UTC
  • mto: This revision was merged to the branch mainline in revision 4069.
  • Revision ID: robertc@robertcollins.net-20090302044502-ev676ddgmzsvny8u
Change the return value of fetch() to None.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    last_revision
67
67
        if set, try to limit to the data this revision references.
68
68
 
69
 
    after running:
70
 
    count_copied -- number of revisions copied
71
 
 
72
69
    This should not be used directly, it's essential a object to encapsulate
73
70
    the logic in InterRepository.fetch().
74
71
    """
82
79
            exists to facilitate a hack done in InterPackRepo.fetch.  We would
83
80
            like to remove this parameter.
84
81
        """
85
 
        # result variables.
86
 
        self.failed_revisions = []
87
 
        self.count_copied = 0
88
82
        if to_repository.has_same_location(from_repository):
89
83
            # repository.fetch should be taking care of this case.
90
84
            raise errors.BzrError('RepoFetcher run '
223
217
                    yield _
224
218
            else:
225
219
                raise AssertionError("Unknown knit kind %r" % knit_kind)
226
 
        self.count_copied += len(revs)
227
220
 
228
221
    def get_stream_for_missing_keys(self, missing_keys):
229
222
        # missing keys can only occur when we are byte copying and not