36
print 'branch format:', b.controlfile('branch-format', 'r').readline().rstrip('\n')
37
print 'branch format:', b.control_files.get_utf8(
38
'branch-format').readline().rstrip('\n')
38
40
def plural(n, base='', pl=None):
46
48
count_version_dirs = 0
48
basis = b.basis_tree()
49
working = b.working_tree()
50
working = b.bzrdir.open_workingtree()
51
basis = working.basis_tree()
50
52
work_inv = working.inventory
51
53
delta = diff.compare_trees(basis, working, want_unchanged=True)
83
85
print ' %8d revision%s' % (revno, plural(revno))
85
87
for rev in history:
86
committers[b.get_revision(rev).committer] = True
88
committers[b.repository.get_revision(rev).committer] = True
87
89
print ' %8d committer%s' % (len(committers), plural(len(committers)))
89
firstrev = b.get_revision(history[0])
91
firstrev = b.repository.get_revision(history[0])
90
92
age = int((time.time() - firstrev.timestamp) / 3600 / 24)
91
93
print ' %8d day%s old' % (age, plural(age))
92
94
print ' first revision: %s' % format_date(firstrev.timestamp,
95
lastrev = b.get_revision(history[-1])
97
lastrev = b.repository.get_revision(history[-1])
96
98
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)
102
# print 'text store:'
103
# c, t = b.text_store.total_size()
104
# print ' %8d file texts' % c
105
# print ' %8d kB' % (t/1024)
106
108
print 'revision store:'
107
c, t = b.revision_store.total_size()
109
c, t = b.repository.revision_store.total_size()
108
110
print ' %8d revisions' % c
109
111
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)
115
# print 'inventory store:'
116
# c, t = b.inventory_store.total_size()
117
# print ' %8d inventories' % c
118
# print ' %8d kB' % (t/1024)