~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Martin Pool
  • Date: 2009-07-09 08:59:51 UTC
  • mto: This revision was merged to the branch mainline in revision 4566.
  • Revision ID: mbp@sourcefrog.net-20090709085951-0d8ont1wkg7fv2rb
RepoFetcher relies on Repository.fetch to shortcircuit no-op fetches

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