/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/info.py

Refactored out ControlFiles and RevisionStore from _Branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    print '  %8d revision%s' % (revno, plural(revno))
84
84
    committers = {}
85
85
    for rev in history:
86
 
        committers[b.get_revision(rev).committer] = True
 
86
        committers[b.storage.get_revision(rev).committer] = True
87
87
    print '  %8d committer%s' % (len(committers), plural(len(committers)))
88
88
    if revno > 0:
89
 
        firstrev = b.get_revision(history[0])
 
89
        firstrev = b.storage.get_revision(history[0])
90
90
        age = int((time.time() - firstrev.timestamp) / 3600 / 24)
91
91
        print '  %8d day%s old' % (age, plural(age))
92
92
        print '   first revision: %s' % format_date(firstrev.timestamp,
93
93
                                                    firstrev.timezone)
94
94
 
95
 
        lastrev = b.get_revision(history[-1])
 
95
        lastrev = b.storage.get_revision(history[-1])
96
96
        print '  latest revision: %s' % format_date(lastrev.timestamp,
97
97
                                                    lastrev.timezone)
98
98
 
104
104
 
105
105
    print
106
106
    print 'revision store:'
107
 
    c, t = b.revision_store.total_size()
 
107
    c, t = b.storage.revision_store.total_size()
108
108
    print '  %8d revisions' % c
109
109
    print '  %8d kB' % (t/1024)
110
110