/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/log.py

  • Committer: Martin Pool
  • Date: 2005-09-05 04:07:23 UTC
  • Revision ID: mbp@sourcefrog.net-20050905040723-55f55e8121ccfed9
- advance version to 0.1pre

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
    
163
163
    if start_revision is None:
164
164
        start_revision = 1
165
 
    elif start_revision < 1 or start_revision >= len(which_revs):
 
165
    elif not (1 <= start_revision <= len(which_revs)):
166
166
        raise InvalidRevisionNumber(start_revision)
167
167
    
168
168
    if end_revision is None:
169
169
        end_revision = len(which_revs)
170
 
    elif end_revision < 1 or end_revision >= len(which_revs):
 
170
    elif not (1 <= end_revision <= len(which_revs)):
171
171
        raise InvalidRevisionNumber(end_revision)
172
172
 
173
173
    # list indexes are 0-based; revisions are 1-based
310
310
        print >>to_file,  'revno:', revno
311
311
        if self.show_ids:
312
312
            print >>to_file,  'revision-id:', rev.revision_id
 
313
 
 
314
            for parent in rev.parents:
 
315
                print >>to_file, 'parent:', parent.revision_id
 
316
            
313
317
        print >>to_file,  'committer:', rev.committer
314
318
 
315
319
        date_str = format_date(rev.timestamp,