~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Martin Pool
  • Date: 2009-08-04 11:40:59 UTC
  • mfrom: (4584 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4586.
  • Revision ID: mbp@sourcefrog.net-20090804114059-xptutagbs5jev3ry
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                symbol_versioning.deprecated_in((1, 14, 0))
60
60
                % "pb parameter to RepoFetcher.__init__")
61
61
            # and for simplicity it is in fact ignored
62
 
        if to_repository.has_same_location(from_repository):
63
 
            # repository.fetch should be taking care of this case.
64
 
            raise errors.BzrError('RepoFetcher run '
65
 
                    'between two objects at the same location: '
66
 
                    '%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.
67
64
        self.to_repository = to_repository
68
65
        self.from_repository = from_repository
69
66
        self.sink = to_repository._get_sink()