~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Aaron Bentley
  • Date: 2005-12-25 00:38:48 UTC
  • mto: (1185.67.11 bzr.revision-storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: aaron.bentley@utoronto.ca-20051225003848-111ac71170cb2605
Renamed Branch.storage to Branch.repository

Show diffs side-by-side

added added

removed removed

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