~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to show_paths.py

  • Committer: Aaron Bentley
  • Date: 2007-06-10 17:55:08 UTC
  • mfrom: (531.2.2 bzrtools)
  • Revision ID: aaron.bentley@utoronto.ca-20070610175508-gex1oxvmfv0qoagi
Merge whitespace cleanups

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?']
63
64
 
64
 
    def run(self, system=False):
 
65
    def run(self, system=False, branch=u'.'):
65
66
        import sys
66
67
 
67
68
        from bzrlib.branch import Branch
82
83
            _bzr_system_info(to_file)
83
84
 
84
85
        try:
85
 
            try:
86
 
                branch = WorkingTree.open_containing(u'.')[0].branch
87
 
            except NoWorkingTree:
88
 
                branch = Branch.open_containing(u'.')[0]
89
 
 
 
86
            branch = Branch.open_containing(branch)[0]
90
87
 
91
88
            if system:
92
89
                print >>to_file