~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-28 02:49:46 UTC
  • Revision ID: mbp@sourcefrog.net-20050328024945-d80f4adc5dfaa9a1
More help for check command

Show diffs side-by-side

added added

removed removed

Lines of Context:
441
441
    Branch('.').commit(message, verbose=verbose)
442
442
 
443
443
 
444
 
def cmd_check():
445
 
    """Check consistency of the branch."""
446
 
    check()
 
444
def cmd_check(dir='.'):
 
445
    """check: Consistency check of branch history.
 
446
 
 
447
usage: bzr check [-v] [BRANCH]
 
448
 
 
449
options:
 
450
  --verbose, -v         Show progress of checking.
 
451
 
 
452
This command checks various invariants about the branch storage to
 
453
detect data corruption or bzr bugs.
 
454
"""
 
455
    import bzrlib.check
 
456
    bzrlib.check.check(Branch(dir, find_root=False))
447
457
 
448
458
 
449
459
def cmd_is(pred, *rest):