~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-27 04:42:41 UTC
  • mfrom: (1092.1.43)
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050827044241-23d676133b9fc981
Merge of robertc@robertcollins.net-20050826013321-52eee1f1da679ee9

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
 
18
18
import bzrlib.ui
19
 
from bzrlib.trace import note, warning
20
19
 
21
20
def _update_store_entry(obj, obj_id, branch, store_name, store):
22
21
    """This is just a meta-function, which handles both revision entries
228
227
 
229
228
    progress.clear()
230
229
 
231
 
    note('checked %d revisions, %d file texts' % (revcount, len(checked_texts)))
 
230
    print 'checked %d revisions, %d file texts' % (revcount, len(checked_texts))
232
231
    
233
232
    if missing_inventory_sha_cnt:
234
 
        note('%d revisions are missing inventory_sha1' % missing_inventory_sha_cnt)
 
233
        print '%d revisions are missing inventory_sha1' % missing_inventory_sha_cnt
235
234
 
236
235
    if missing_revision_sha_cnt:
237
 
        note('%d parent links are missing revision_sha1' % missing_revision_sha_cnt)
 
236
        print '%d parent links are missing revision_sha1' % missing_revision_sha_cnt
238
237
 
239
238
    if missing_revision_cnt:
240
 
        note('%d revisions are mentioned but not present' % missing_revision_cnt)
 
239
        print '%d revisions are mentioned but not present' % missing_revision_cnt
241
240
 
242
241
    # stub this out for now because the main bzr branch has references
243
242
    # to revisions that aren't present in the store -- mbp 20050804
246
245
#        print '  (use "bzr upgrade" to fix them)'
247
246
 
248
247
    if mismatch_inv_id:
249
 
        warning('%d revisions have mismatched inventory ids:' % len(mismatch_inv_id))
 
248
        print '%d revisions have mismatched inventory ids:' % len(mismatch_inv_id)
250
249
        for rev_id in mismatch_inv_id:
251
 
            warning('  %s', rev_id)
 
250
            print '  ', rev_id