~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-24 00:44:18 UTC
  • Revision ID: mbp@sourcefrog.net-20050324004418-b4a050f656c07f5f
show space usage for various stores in the info command

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
 
78
78
    print
79
79
    print 'text store:'
80
 
    print '  %5d file texts' % len(b.text_store)
 
80
    c, t = b.text_store.total_size()
 
81
    print '  %5d file texts' % c
 
82
    print '  %5d kB' % (t/1024)
81
83
 
82
84
    print
83
85
    print 'revision store:'
84
 
    print '  %5d revisions' % len(b.revision_store)
 
86
    c, t = b.revision_store.total_size()
 
87
    print '  %5d revisions' % c
 
88
    print '  %5d kB' % (t/1024)
 
89
 
85
90
 
86
91
    print
87
92
    print 'inventory store:'
88
 
    print '  %5d inventories' % len(b.inventory_store)
 
93
    c, t = b.inventory_store.total_size()
 
94
    print '  %5d inventories' % c
 
95
    print '  %5d kB' % (t/1024)
 
96