~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2007-08-14 19:27:04 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070814192704-fv9k8f4a27c33mlr
multi-pull reuses connections where possible

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
        if location is None:
464
464
            location = '.'
465
465
        t = get_transport(location)
 
466
        possible_transports = []
466
467
        if not t.listable():
467
468
            print "Can't list this type of location."
468
469
            return 3
484
485
                relpath = base
485
486
            print "Pulling %s from %s" % (relpath, parent)
486
487
            try:
487
 
                pullable.pull(Branch.open(parent))
 
488
                branch_t = get_transport(parent, possible_transports)
 
489
                pullable.pull(Branch.open_from_transport(branch_t))
488
490
            except Exception, e:
489
491
                print e
490
492