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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-02 08:59:57 UTC
  • mfrom: (4065.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090302085957-qvafywhoynyrgxhb
(robertc) fetch() now returns None. (Robert Collins)

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
 
 
71
69
    This should not be used directly, it's essential a object to encapsulate
72
70
    the logic in InterRepository.fetch().
73
71
    """
81
79
            exists to facilitate a hack done in InterPackRepo.fetch.  We would
82
80
            like to remove this parameter.
83
81
        """
84
 
        # result variables.
85
 
        self.count_copied = 0
86
 
        self.failed_revisions = []
87
82
        if to_repository.has_same_location(from_repository):
88
83
            # repository.fetch should be taking care of this case.
89
84
            raise errors.BzrError('RepoFetcher run '
171
166
                    "second push failed to commit the fetch %r." % (
172
167
                        resume_tokens,))
173
168
            self.sink.finished()
174
 
            self.count_copied = source.count_copied
175
169
        finally:
176
170
            if self.pb is not None:
177
171
                self.pb.finished()