/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: Martin Pool
  • Date: 2009-03-11 07:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 4144.
  • Revision ID: mbp@sourcefrog.net-20090311073528-8gyu3dkrkxz3lvj3
Deprecate passing a pb in to RepoFetcher

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import operator
27
27
 
28
28
import bzrlib
29
 
import bzrlib.errors as errors
 
29
from bzrlib import (
 
30
    errors,
 
31
    symbol_versioning,
 
32
    )
30
33
from bzrlib.errors import InstallFailed
31
34
from bzrlib.progress import ProgressPhase
32
35
from bzrlib.revision import NULL_REVISION
49
52
 
50
53
        :param last_revision: If set, try to limit to the data this revision
51
54
            references.
52
 
 
53
55
        :param find_ghosts: If True search the entire history for ghosts.
54
56
        :param _write_group_acquired_callable: Don't use; this parameter only
55
57
            exists to facilitate a hack done in InterPackRepo.fetch.  We would
56
58
            like to remove this parameter.
 
59
        :param pb: ProgressBar object to use; deprecated.  If absent or None,
 
60
            this method will just create one on top of the stack.
57
61
        """
58
62
        if to_repository.has_same_location(from_repository):
59
63
            # repository.fetch should be taking care of this case.
70
74
        if pb is None:
71
75
            self.pb = bzrlib.ui.ui_factory.nested_progress_bar()
72
76
        else:
 
77
            symbol_versioning.warn(
 
78
                symbol_versioning.deprecated_in((1, 14, 0))
 
79
                % "pb parameter to RepoFetcher.__init__")
73
80
            self.pb = pb
74
81
        self.from_repository.lock_read()
75
82
        try: