~michael-ellerman/bzr/mpe

« back to all changes in this revision

Viewing changes to bzrlib/info.py

[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004, 2005 by Martin Pool
2
 
# Copyright (C) 2005 by Canonical Ltd
3
 
 
4
 
 
 
1
# Copyright (C) 2005, 2006 by Canonical Ltd
 
2
5
3
# This program is free software; you can redistribute it and/or modify
6
4
# it under the terms of the GNU General Public License as published by
7
5
# the Free Software Foundation; either version 2 of the License, or
8
6
# (at your option) any later version.
9
 
 
 
7
10
8
# This program is distributed in the hope that it will be useful,
11
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
11
# GNU General Public License for more details.
14
 
 
 
12
15
13
# You should have received a copy of the GNU General Public License
16
14
# along with this program; if not, write to the Free Software
17
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
24
                           NoRepositoryPresent, NotLocalUrl)
27
25
from bzrlib.missing import find_unmerged
28
26
import bzrlib.osutils as osutils
29
 
from bzrlib.symbol_versioning import *
 
27
from bzrlib.symbol_versioning import (deprecated_function, 
 
28
        zero_eight)
30
29
 
31
30
 
32
31
def plural(n, base='', pl=None):
63
62
        branch_path = branch.bzrdir.root_transport.base
64
63
        if working_path != branch_path:
65
64
            # lightweight checkout
66
 
            print '  light checkout root: %s' % working_path
 
65
            print ' light checkout root: %s' % working_path
67
66
            if repository.is_shared():
68
67
                # lightweight checkout of branch in shared repository
69
 
                print '    shared repository: %s' % repository_path
70
 
                print '    repository branch: %s' % (
 
68
                print '   shared repository: %s' % repository_path
 
69
                print '   repository branch: %s' % (
71
70
                    _repo_relpath(repository_path, branch_path))
72
71
            else:
73
72
                # lightweight checkout of standalone branch
74
 
                print '   checkout of branch: %s' % branch_path
 
73
                print '  checkout of branch: %s' % branch_path
75
74
        elif repository.is_shared():
76
75
            # branch with tree inside shared repository
77
76
            print '    shared repository: %s' % repository_path