~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Add temporary --debug option to command info to test on various
constructs of bzr branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
732
732
class cmd_info(Command):
733
733
    """Show statistical information about a branch."""
734
734
    takes_args = ['branch?']
735
 
    
 
735
    takes_options = [
 
736
                     Option('debug', 
 
737
                            help='Temporary option for debugging only'),
 
738
                     ]
 
739
 
736
740
    @display_command
737
 
    def run(self, branch=None):
 
741
    def run(self, branch=None, debug=False):
738
742
        import bzrlib.info
739
 
        bzrlib.info.show_bzrdir_info(bzrdir.BzrDir.open_containing(branch)[0])
 
743
        bzrlib.info.show_bzrdir_info(bzrdir.BzrDir.open_containing(branch)[0],
 
744
                debug)
740
745
 
741
746
 
742
747
class cmd_remove(Command):