~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Robert Collins
  • Date: 2005-10-06 12:14:01 UTC
  • mfrom: (1393.1.67)
  • Revision ID: robertc@robertcollins.net-20051006121401-ce87bcb93909bbdf
merge martins latest

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
18
 
19
 
from sets import Set
20
19
import time
21
20
 
22
 
from osutils import format_date
 
21
from bzrlib.osutils import format_date
23
22
 
24
23
 
25
24
def _countiter(it):
82
81
    history = b.revision_history()
83
82
    revno = len(history)
84
83
    print '  %8d revision%s' % (revno, plural(revno))
85
 
    committers = Set()
 
84
    committers = {}
86
85
    for rev in history:
87
 
        committers.add(b.get_revision(rev).committer)
 
86
        committers[b.get_revision(rev).committer] = True
88
87
    print '  %8d committer%s' % (len(committers), plural(len(committers)))
89
88
    if revno > 0:
90
89
        firstrev = b.get_revision(history[0])
97
96
        print '  latest revision: %s' % format_date(lastrev.timestamp,
98
97
                                                    lastrev.timezone)
99
98
 
100
 
    print
101
 
    print 'text store:'
102
 
    c, t = b.text_store.total_size()
103
 
    print '  %8d file texts' % c
104
 
    print '  %8d kB' % (t/1024)
 
99
#     print
 
100
#     print 'text store:'
 
101
#     c, t = b.text_store.total_size()
 
102
#     print '  %8d file texts' % c
 
103
#     print '  %8d kB' % (t/1024)
105
104
 
106
105
    print
107
106
    print 'revision store:'
110
109
    print '  %8d kB' % (t/1024)
111
110
 
112
111
 
113
 
    print
114
 
    print 'inventory store:'
115
 
    c, t = b.inventory_store.total_size()
116
 
    print '  %8d inventories' % c
117
 
    print '  %8d kB' % (t/1024)
 
112
#     print
 
113
#     print 'inventory store:'
 
114
#     c, t = b.inventory_store.total_size()
 
115
#     print '  %8d inventories' % c
 
116
#     print '  %8d kB' % (t/1024)
118
117