~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to show_paths.py

  • Committer: Aaron Bentley
  • Date: 2006-11-23 18:06:43 UTC
  • Revision ID: abentley@panoramicfeedback.com-20061123180643-6ry3xqozdbn4cfhy
Update docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
    takes_options = [Option('system', help='Show full bzr system information'),
62
62
                    ]
63
 
    takes_args = ['branch?']
64
63
 
65
 
    def run(self, system=False, branch=u'.'):
 
64
    def run(self, system=False):
66
65
        import sys
67
66
 
68
67
        from bzrlib.branch import Branch
83
82
            _bzr_system_info(to_file)
84
83
 
85
84
        try:
86
 
            branch = Branch.open_containing(branch)[0]
 
85
            try:
 
86
                branch = WorkingTree.open_containing(u'.')[0].branch
 
87
            except NoWorkingTree:
 
88
                branch = Branch.open_containing(u'.')[0]
 
89
 
87
90
 
88
91
            if system:
89
92
                print >>to_file