~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-09-05 01:31:37 UTC
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050905013137-c8b598b5a90a52a9
Fixed the revno bug in log

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)]