~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.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:
1
 
#! /usr/bin/python
2
 
 
3
 
 
4
1
# Copyright (C) 2004, 2005 by Martin Pool
5
2
# Copyright (C) 2005 by Canonical Ltd
6
3
 
7
 
 
8
4
# This program is free software; you can redistribute it and/or modify
9
5
# it under the terms of the GNU General Public License as published by
10
6
# the Free Software Foundation; either version 2 of the License, or
25
21
# consistency checks
26
22
 
27
23
def check():
28
 
    """Consistency check of tree."""
 
24
    """check: Consistency check of branch history.
 
25
 
 
26
usage: bzr check [-v] [BRANCH]
 
27
 
 
28
options:
 
29
  --verbose, -v         Show progress of checking.
 
30
 
 
31
This command checks various invariants about the branch storage to
 
32
detect data corruption or bzr bugs.
 
33
"""
29
34
    assert_in_tree()
30
35
    mutter("checking tree")
31
36
    check_patches_exist()