~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Vincent Ladeuil
  • Date: 2009-05-05 15:31:34 UTC
  • mto: (4343.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4344.
  • Revision ID: v.ladeuil+lp@free.fr-20090505153134-q4bp4is9gywsmzrv
Clean up test for log formats.

* bzrlib/tests/blackbox/test_logformats.py:
Update tests to actual style.

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.
54
57
        :param pb: ProgressBar object to use; deprecated and ignored.
55
58
            This method will just create one on top of the stack.
56
59
        """
59
62
                symbol_versioning.deprecated_in((1, 14, 0))
60
63
                % "pb parameter to RepoFetcher.__init__")
61
64
            # and for simplicity it is in fact ignored
62
 
        # repository.fetch has the responsibility for short-circuiting
63
 
        # attempts to copy between a repository and itself.
 
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))
64
70
        self.to_repository = to_repository
65
71
        self.from_repository = from_repository
66
72
        self.sink = to_repository._get_sink()