~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Make bzr info command work on both local and remote locations. Support
branches and repositories, next to working trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
750
750
class cmd_info(Command):
751
751
    """Show statistical information about a branch."""
752
752
    takes_args = ['branch?']
 
753
    takes_options = ['verbose']
753
754
    
754
755
    @display_command
755
 
    def run(self, branch=None):
 
756
    def run(self, branch=None, verbose=False):
756
757
        import bzrlib.info
757
 
        bzrlib.info.show_bzrdir_info(bzrdir.BzrDir.open_containing(branch)[0])
 
758
        bzrlib.info.show_bzrdir_info(bzrdir.BzrDir.open_containing(branch)[0],
 
759
                                     verbose=verbose)
758
760
 
759
761
 
760
762
class cmd_remove(Command):