~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2006-05-03 08:05:05 UTC
  • mfrom: (1624.3.45 bzr.olaf.info)
  • mto: This revision was merged to the branch mainline in revision 1697.
  • Revision ID: mbp@sourcefrog.net-20060503080505-dd3f40f3ee57b137
[merge] bzr info and lock improvements (olaf)

Show diffs side-by-side

added added

removed removed

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