/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/transport/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-10 19:14:43 UTC
  • mto: This revision was merged to the branch mainline in revision 3701.
  • Revision ID: john@arbash-meinel.com-20080910191443-1cncrx1oo6os71nm
Overlapping ranges are not allowed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
792
792
                and (limit <= 0 or len(cur.ranges) < limit)
793
793
                and (max_size <= 0 or end - cur.start <= max_size)):
794
794
                if start < last_end:
795
 
                    raise errors.ValueError('Overlapping range not allowed:'
 
795
                    raise ValueError('Overlapping range not allowed:'
796
796
                        ' last range ended at %s, new one starts at %s'
797
797
                        % (last_end, start))
798
798
                cur.length = end - cur.start