~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-21 02:47:23 UTC
  • mto: (1092.1.41) (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1110.
  • Revision ID: aaron.bentley@utoronto.ca-20050821024722-8415d261af04ec4f
Added greedy_fetch to update_revisions

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import sys
22
22
import os
23
23
 
24
 
def greedy_fetch(to_branch, from_branch, revision=None):
 
24
def greedy_fetch(to_branch, from_branch, revision=None, pb=None):
25
25
    """Copy a revision and all available ancestors from one branch to another
26
26
    If no revision is specified, uses the last revision in the source branch's
27
27
    revision history.
48
48
    count = 0
49
49
    while len(missing) > 0:
50
50
        installed, failed = to_branch.install_revisions(from_branch, 
51
 
                                                        revision_ids=missing)
 
51
                                                        revision_ids=missing,
 
52
                                                        pb=pb)
52
53
        count += installed
53
54
        required_failed = failed.intersection(required_revisions)
54
55
        if len(required_failed) > 0: