~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-29 21:35:05 UTC
  • mfrom: (4576 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4577.
  • Revision ID: john@arbash-meinel.com-20090729213505-tkqsvy1zfpocu75w
Merge bzr.dev 4576 in prep for NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        :param last_revision: If set, try to limit to the data this revision
52
52
            references.
53
53
        :param find_ghosts: If True search the entire history for ghosts.
54
 
        :param _write_group_acquired_callable: Don't use; this parameter only
55
 
            exists to facilitate a hack done in InterPackRepo.fetch.  We would
56
 
            like to remove this parameter.
57
54
        :param pb: ProgressBar object to use; deprecated and ignored.
58
55
            This method will just create one on top of the stack.
59
56
        """
62
59
                symbol_versioning.deprecated_in((1, 14, 0))
63
60
                % "pb parameter to RepoFetcher.__init__")
64
61
            # and for simplicity it is in fact ignored
65
 
        if to_repository.has_same_location(from_repository):
66
 
            # repository.fetch should be taking care of this case.
67
 
            raise errors.BzrError('RepoFetcher run '
68
 
                    'between two objects at the same location: '
69
 
                    '%r and %r' % (to_repository, from_repository))
 
62
        # repository.fetch has the responsibility for short-circuiting
 
63
        # attempts to copy between a repository and itself.
70
64
        self.to_repository = to_repository
71
65
        self.from_repository = from_repository
72
66
        self.sink = to_repository._get_sink()