~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-28 08:23:34 UTC
  • mfrom: (5158.6.14 components)
  • Revision ID: pqm@pqm.ubuntu.com-20100428082334-tmv91z1h0d99ls8s
(mbp) add ControlComponent base class and standard user_url etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
def gather_location_info(repository, branch=None, working=None):
82
82
    locs = {}
83
 
    repository_path = repository.bzrdir.root_transport.base
 
83
    repository_path = repository.user_url
84
84
    if branch is not None:
85
 
        branch_path = branch.bzrdir.root_transport.base
 
85
        branch_path = branch.user_url
86
86
        master_path = branch.get_bound_location()
87
87
        if master_path is None:
88
88
            master_path = branch_path
90
90
        branch_path = None
91
91
        master_path = None
92
92
    if working:
93
 
        working_path = working.bzrdir.root_transport.base
 
93
        working_path = working.user_url
94
94
        if working_path != branch_path:
95
95
            locs['light checkout root'] = working_path
96
96
        if master_path != branch_path:
420
420
        if branch is None and tree is not None:
421
421
            phrase = "branchless tree"
422
422
        else:
423
 
            if (tree is not None and tree.bzrdir.root_transport.base !=
424
 
                branch.bzrdir.root_transport.base):
 
423
            if (tree is not None and tree.user_url !=
 
424
                branch.user_url):
425
425
                independence = ''
426
426
                phrase = "Lightweight checkout"
427
427
            elif branch.get_bound_location() is not None:
446
446
    """
447
447
    candidates  = []
448
448
    if (branch is not None and tree is not None and
449
 
        branch.bzrdir.root_transport.base !=
450
 
        tree.bzrdir.root_transport.base):
 
449
        branch.user_url != tree.user_url):
451
450
        branch = None
452
451
        repository = None
453
452
    non_aliases = set(bzrdir.format_registry.keys())