~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Martin Pool
  • Date: 2007-08-15 04:33:34 UTC
  • mto: (2701.1.2 remove-should-cache)
  • mto: This revision was merged to the branch mainline in revision 2710.
  • Revision ID: mbp@sourcefrog.net-20070815043334-01dx9emb0vjiy29v
Remove things deprecated in 0.11 and earlier

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
from bzrlib.revision import NULL_REVISION
40
40
from bzrlib.symbol_versioning import (deprecated_function,
41
41
        deprecated_method,
42
 
        zero_eight,
43
42
        )
44
43
from bzrlib.trace import mutter
45
44
import bzrlib.ui
64
63
#   and add in all file versions
65
64
 
66
65
 
67
 
@deprecated_function(zero_eight)
68
 
def greedy_fetch(to_branch, from_branch, revision=None, pb=None):
69
 
    """Legacy API, please see branch.fetch(from_branch, last_revision, pb)."""
70
 
    f = Fetcher(to_branch, from_branch, revision, pb)
71
 
    return f.count_copied, f.failed_revisions
72
 
 
73
 
fetch = greedy_fetch
74
 
 
75
 
 
76
66
class RepoFetcher(object):
77
67
    """Pull revisions and texts from one repository to another.
78
68
 
389
379
 
390
380
    def _fetch_inventory_weave(self, revs):
391
381
        self.helper.regenerate_inventory(revs)
392
 
        
393
 
 
394
 
class Fetcher(object):
395
 
    """Backwards compatibility glue for branch.fetch()."""
396
 
 
397
 
    @deprecated_method(zero_eight)
398
 
    def __init__(self, to_branch, from_branch, last_revision=None, pb=None):
399
 
        """Please see branch.fetch()."""
400
 
        to_branch.fetch(from_branch, last_revision, pb)