~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-29 20:34:25 UTC
  • mfrom: (1185.11.24)
  • mto: (1393.1.12)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050929203425-7fc2ea87f449dfe8
Merged in split-storage-2 branch. Need to cleanup a little bit more still.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
from bzrlib.tree import EmptyTree
54
54
from bzrlib.delta import compare_trees
55
55
from bzrlib.trace import mutter
56
 
from bzrlib.errors import InvalidRevisionNumber
57
56
 
58
57
 
59
58
def find_touching_revisions(branch, file_id):
162
161
    
163
162
    if start_revision is None:
164
163
        start_revision = 1
165
 
    elif start_revision < 1 or start_revision >= len(which_revs):
166
 
        raise InvalidRevisionNumber(start_revision)
 
164
    else:
 
165
        branch.check_real_revno(start_revision)
167
166
    
168
167
    if end_revision is None:
169
168
        end_revision = len(which_revs)
170
 
    elif end_revision < 1 or end_revision >= len(which_revs):
171
 
        raise InvalidRevisionNumber(end_revision)
 
169
    else:
 
170
        branch.check_real_revno(end_revision)
172
171
 
173
172
    # list indexes are 0-based; revisions are 1-based
174
173
    cut_revs = which_revs[(start_revision-1):(end_revision)]
310
309
        print >>to_file,  'revno:', revno
311
310
        if self.show_ids:
312
311
            print >>to_file,  'revision-id:', rev.revision_id
 
312
 
 
313
            for parent_id in rev.parent_ids:
 
314
                print >>to_file, 'parent:', parent_id
 
315
            
313
316
        print >>to_file,  'committer:', rev.committer
314
317
 
315
318
        date_str = format_date(rev.timestamp,