~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Add updated help message for bzr info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
764
764
 
765
765
 
766
766
class cmd_info(Command):
767
 
    """Show statistical information about a branch."""
768
 
    takes_args = ['branch?']
 
767
    """Show information about a working tree, branch or repository.
 
768
 
 
769
    This command will show all known locations and formats associated to the
 
770
    tree, branch or repository.  Statistical information is included with
 
771
    each report.
 
772
 
 
773
    Branches and working trees will also report any missing revisions.
 
774
    """
 
775
    takes_args = ['location?']
769
776
    takes_options = ['verbose']
770
 
    
 
777
 
771
778
    @display_command
772
 
    def run(self, branch=None, verbose=False):
773
 
        import bzrlib.info
774
 
        bzrlib.info.show_bzrdir_info(bzrdir.BzrDir.open_containing(branch)[0],
775
 
                                     verbose=verbose)
 
779
    def run(self, location=None, verbose=False):
 
780
        from bzrlib.info import show_bzrdir_info
 
781
        show_bzrdir_info(bzrdir.BzrDir.open_containing(location)[0],
 
782
                         verbose=verbose)
776
783
 
777
784
 
778
785
class cmd_remove(Command):