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