36
print 'branch format:', b.controlfile('branch-format', 'r').readline().rstrip('\n')
36
print 'branch format:', b.control_files.get_utf8(
37
'branch-format').readline().rstrip('\n')
38
39
def plural(n, base='', pl=None):
83
84
print ' %8d revision%s' % (revno, plural(revno))
85
86
for rev in history:
86
committers[b.get_revision(rev).committer] = True
87
committers[b.repository.get_revision(rev).committer] = True
87
88
print ' %8d committer%s' % (len(committers), plural(len(committers)))
89
firstrev = b.get_revision(history[0])
90
firstrev = b.repository.get_revision(history[0])
90
91
age = int((time.time() - firstrev.timestamp) / 3600 / 24)
91
92
print ' %8d day%s old' % (age, plural(age))
92
93
print ' first revision: %s' % format_date(firstrev.timestamp,
95
lastrev = b.get_revision(history[-1])
96
lastrev = b.repository.get_revision(history[-1])
96
97
print ' latest revision: %s' % format_date(lastrev.timestamp,
101
c, t = b.text_store.total_size()
102
print ' %8d file texts' % c
103
print ' %8d kB' % (t/1024)
101
# print 'text store:'
102
# c, t = b.text_store.total_size()
103
# print ' %8d file texts' % c
104
# print ' %8d kB' % (t/1024)
106
107
print 'revision store:'
107
c, t = b.revision_store.total_size()
108
c, t = b.repository.revision_store.total_size()
108
109
print ' %8d revisions' % c
109
110
print ' %8d kB' % (t/1024)
113
print 'inventory store:'
114
c, t = b.inventory_store.total_size()
115
print ' %8d inventories' % c
116
print ' %8d kB' % (t/1024)
114
# print 'inventory store:'
115
# c, t = b.inventory_store.total_size()
116
# print ' %8d inventories' % c
117
# print ' %8d kB' % (t/1024)