~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: 2006-05-16 14:41:52 UTC
  • mfrom: (1185.50.97 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060516144152-05cdf3bd9a34b467
Olaf Conradi (by jam) fix bug 44155: bzr info problems with standalone branches

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()