~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-27 09:14:45 UTC
  • Revision ID: mbp@sourcefrog.net-20050327091445-d59328fc7fe0ab32
change default ignore list

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/python
 
2
 
 
3
 
1
4
# Copyright (C) 2004, 2005 by Martin Pool
2
5
# Copyright (C) 2005 by Canonical Ltd
3
6
 
 
7
 
4
8
# This program is free software; you can redistribute it and/or modify
5
9
# it under the terms of the GNU General Public License as published by
6
10
# the Free Software Foundation; either version 2 of the License, or
21
25
# consistency checks
22
26
 
23
27
def check():
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
 
"""
 
28
    """Consistency check of tree."""
34
29
    assert_in_tree()
35
30
    mutter("checking tree")
36
31
    check_patches_exist()