/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: Andrew Bennetts
  • Date: 2009-07-27 05:24:02 UTC
  • mfrom: (4570 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4573.
  • Revision ID: andrew.bennetts@canonical.com-20090727052402-e3vakc2pnq0y66gm
Merge bzr.dev.

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()