~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Martin Pool
  • Date: 2005-09-05 05:35:25 UTC
  • mfrom: (974.1.55)
  • Revision ID: mbp@sourcefrog.net-20050905053525-2112bac069dbe331
- merge various bug fixes from aaron

aaron.bentley@utoronto.ca-20050905020131-a2d5b7711dd6cd98

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 not (1 <= 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 not (1 <= 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)]