~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

Backport bzr info improvements to bzr 0.8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
            # standalone
86
86
            print '  branch root: %s' % working_path
87
87
    elif branch:
88
 
        # branch is part of shared repository
89
 
        assert repository.is_shared()
90
88
        branch_path = branch.bzrdir.root_transport.base
91
 
        print '  shared repository: %s' % repository_path
92
 
        print '  repository branch: %s' % (
93
 
            _repo_relpath(repository_path, branch_path))
 
89
        if repository.is_shared():
 
90
            # branch is part of shared repository
 
91
            print '  shared repository: %s' % repository_path
 
92
            print '  repository branch: %s' % (
 
93
                _repo_relpath(repository_path, branch_path))
 
94
        else:
 
95
            # standalone branch
 
96
            print '  branch root: %s' % branch_path
94
97
    else:
95
98
        # shared repository
96
99
        assert repository.is_shared()