~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Wouter van Heyst
  • Date: 2006-06-06 12:06:20 UTC
  • mfrom: (1740 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: larstiq@larstiq.dyndns.org-20060606120620-50066b0951e4ef7c
merge bzr.dev 1740

Show diffs side-by-side

added added

removed removed

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