~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

Deprecated fetch.fetch and fetch.greedy_fetch for branch.fetch, and move the Repository.fetch internals to InterRepo and InterWeaveRepo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
339
339
 
340
340
    def _match_on(self, branch, revs):
341
341
        from branch import Branch
342
 
        from fetch import greedy_fetch
343
342
        other_branch = Branch.open_containing(self.spec)[0]
344
343
        revision_b = other_branch.last_revision()
345
344
        if revision_b is None:
346
345
            raise NoCommits(other_branch)
347
346
        # pull in the remote revisions so we can diff
348
 
        greedy_fetch(branch, other_branch, revision=revision_b)
 
347
        branch.fetch(other_branch, revision_b)
349
348
        try:
350
349
            revno = branch.revision_id_to_revno(revision_b)
351
350
        except NoSuchRevision: