~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

(mbp) add reconfigure --stacked-on and --unstacked

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