~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to show_paths.py

  • Committer: Aaron Bentley
  • Date: 2006-12-12 16:50:31 UTC
  • Revision ID: abentley@panoramicfeedback.com-20061212165031-51w8gjy1eps1vnw0
update NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        * submit to   - default reference location for bundle generation
59
59
    """
60
60
 
61
 
    takes_options = [Option('system',
62
 
                            help='Show full bzr system information.'),
 
61
    takes_options = [Option('system', help='Show full bzr system information'),
63
62
                    ]
64
 
    takes_args = ['branch?']
65
63
 
66
 
    def run(self, system=False, branch=u'.'):
 
64
    def run(self, system=False):
67
65
        import sys
68
66
 
69
67
        from bzrlib.branch import Branch
84
82
            _bzr_system_info(to_file)
85
83
 
86
84
        try:
87
 
            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
 
88
90
 
89
91
            if system:
90
92
                print >>to_file