~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-11 06:18:45 UTC
  • Revision ID: mbp@sourcefrog.net-20050511061845-f8cd99b4312e72f8
- Optional branch parameter to info command

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
 
370
370
 
371
371
class cmd_info(Command):
372
 
    """Show statistical information for this branch"""
373
 
    def run(self):
 
372
    """Show statistical information about a branch."""
 
373
    takes_args = ['branch?']
 
374
    
 
375
    def run(self, branch=None):
374
376
        import info
375
 
        info.show_info(Branch('.'))        
 
377
 
 
378
        from branch import find_branch
 
379
        b = find_branch(branch)
 
380
        info.show_info(b)
376
381
 
377
382
 
378
383
class cmd_remove(Command):