~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.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:
74
74
    last_path = None
75
75
    revno = 1
76
76
    for revision_id in branch.revision_history():
77
 
        this_inv = branch.storage.get_revision_inventory(revision_id)
 
77
        this_inv = branch.repository.get_revision_inventory(revision_id)
78
78
        if file_id in this_inv:
79
79
            this_ie = this_inv[file_id]
80
80
            this_path = this_inv.id2path(file_id)
223
223
            # although we calculated it, throw it away without display
224
224
            delta = None
225
225
 
226
 
        rev = branch.storage.get_revision(rev_id)
 
226
        rev = branch.repository.get_revision(rev_id)
227
227
 
228
228
        if searchRE:
229
229
            if not searchRE.search(rev.message):
235
235
                excludes = set()
236
236
            else:
237
237
                # revno is 1 based, so -2 to get back 1 less.
238
 
                storage = branch.storage
239
 
                excludes = storage.get_ancestry(revision_history[revno - 2])
 
238
                repository = branch.repository
 
239
                excludes = repository.get_ancestry(revision_history[revno - 2])
240
240
                excludes = set(excludes)
241
241
            pending = list(rev.parent_ids)
242
242
            while pending:
246
246
                # prevent showing merged revs twice if they multi-path.
247
247
                excludes.add(rev_id)
248
248
                try:
249
 
                    rev = branch.storage.get_revision(rev_id)
 
249
                    rev = branch.repository.get_revision(rev_id)
250
250
                except errors.NoSuchRevision:
251
251
                    continue
252
252
                pending.extend(rev.parent_ids)
512
512
        to_file.write('*'*60)
513
513
        to_file.write('\nRemoved Revisions:\n')
514
514
        for i in range(base_idx, len(old_rh)):
515
 
            rev = branch.storage.get_revision(old_rh[i])
 
515
            rev = branch.repository.get_revision(old_rh[i])
516
516
            lf.show(i+1, rev, None)
517
517
        to_file.write('*'*60)
518
518
        to_file.write('\n\n')