~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to show_paths.py

  • Committer: Aaron Bentley
  • Date: 2007-06-12 20:36:46 UTC
  • mto: This revision was merged to the branch mainline in revision 543.
  • Revision ID: abentley@panoramicfeedback.com-20070612203646-m4syd874y4km1u6x
Tags: release-0.17.1
Prepare for 0.17.1 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
Written by Alexander Belchenko, 2006
5
5
"""
6
6
 
7
 
from bzrlib.commands import register_command
8
 
from command import BzrToolsCommand
 
7
from bzrlib.commands import Command, register_command
9
8
from bzrlib.option import Option
10
9
 
11
10
 
46
45
#/def _bzr_system_info
47
46
 
48
47
 
49
 
class cmd_show_paths(BzrToolsCommand):
 
48
class cmd_show_paths(Command):
50
49
    """Show paths used by bzr itself and for current branch.
51
50
 
52
 
    The standard "bzr info" command now includes this functionality.
53
 
 
54
51
    If you run this command from branch you'll see
55
52
    saved path locations for current branch:
56
53
 
61
58
        * submit to   - default reference location for bundle generation
62
59
    """
63
60
 
64
 
    takes_options = [Option('system',
65
 
                            help='Show full bzr system information.'),
 
61
    takes_options = [Option('system', help='Show full bzr system information'),
66
62
                    ]
67
63
    takes_args = ['branch?']
68
64
 
69
 
    hidden = True
70
 
 
71
 
    _see_also = ['info']
72
 
 
73
65
    def run(self, system=False, branch=u'.'):
74
66
        import sys
75
67
 
76
68
        from bzrlib.branch import Branch
77
69
        from bzrlib.errors import NotBranchError, NoWorkingTree
78
 
        from bzrlib import urlutils, trace
 
70
        from bzrlib import urlutils
79
71
        from bzrlib.workingtree import WorkingTree
80
 
        trace.warning('This command is obsolete.  Use "bzr info" instead.')
81
72
 
82
73
        def local_path(path):
83
74
            if path.startswith("file://"):