~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-29 00:10:32 UTC
  • Revision ID: mbp@sourcefrog.net-20050329001032-e456f9f3ffd92d45
check: directories must not have any text

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
                    % (file_id, revid))
84
84
        seen_ids.add(file_id)
85
85
        
 
86
 
86
87
    for file_id in inv:
87
88
        ie = inv[file_id]
88
89
        
94
95
        if ie.kind == 'file':
95
96
            if not ie.text_id in branch.text_store:
96
97
                bailout('text {%s} not in text_store' % ie.text_id)
97
 
 
 
98
        elif ie.kind == 'directory':
 
99
            if ie.text_sha1 != None or ie.text_size != None or ie.text_id != None:
 
100
                bailout('directory {%s} has text in revision {%s}'
 
101
                        % (file_id, revid))
98
102
                
99
103
            
100
104
    for path, ie in inv.iter_entries():