~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Martin Pool
  • Date: 2005-05-19 08:31:06 UTC
  • Revision ID: mbp@sourcefrog.net-20050519083106-ebe71562d3bda4a7
- fix typo

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
# consistency checks
22
22
 
23
23
import sys
24
 
from sets import Set
25
24
 
26
25
from trace import mutter
27
26
from errors import bailout
28
27
import osutils
29
28
 
30
29
def check(branch, progress=True):
 
30
    from bzrlib import set
 
31
 
31
32
    out = sys.stdout
32
33
 
33
34
    # TODO: factor out
45
46
 
46
47
    p('history of %r' % branch.base)
47
48
    last_ptr = None
48
 
    checked_revs = Set()
 
49
    checked_revs = set()
49
50
    
50
51
    history = branch.revision_history()
51
52
    revno = 0
70
71
        ## TODO: Check all the required fields are present on the revision.
71
72
 
72
73
        inv = branch.get_inventory(rev.inventory_id)
73
 
        seen_ids = Set()
74
 
        seen_names = Set()
 
74
        seen_ids = set()
 
75
        seen_names = set()
75
76
 
76
77
        p('revision %d/%d file ids' % (revno, revcount))
77
78
        for file_id in inv: