/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

  • Committer: Vincent Ladeuil
  • Date: 2007-06-20 13:56:21 UTC
  • mto: (2574.1.1 ianc-integration)
  • Revision ID: v.ladeuil+lp@free.fr-20070620135621-x43c0hnmzu0iuo6m
Fix #115209 by issuing a single range request on 400: Bad Request

* bzrlib/transport/http/response.py:
(handle_response): Consider 400 as an indication that too much
ranges were specified.

* bzrlib/transport/http/_urllib2_wrappers.py:
(Request): Add an 'accpeted_errors' parameters describing what
error codes the caller will handle.
(HTTPErrorProcessor): Mention that Request specific accepted error
codes takes precedence.
(HTTPDefaultErrorHandler.http_error_default): Remove dead code.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib._get): Add 400 as an accepted error iff
ranges are specified.
(HttpTransport_urllib._head): Restrict accepted errors.

* bzrlib/transport/http/__init__.py:
(HttpTransportBase._degrade_range_hint,
HttpTransportBase._get_ranges_hinted): Replace _retry_get.
(HttpTransportBase.readv): Simplified and avoid the spurious _get()
issued when _get was successful.

* bzrlib/tests/test_http.py:
(TestLimitedRangeRequestServer,
TestLimitedRangeRequestServer_urllib,
TestLimitedRangeRequestServer_pycurl): Bug #115209 specific tests.

* bzrlib/tests/HTTPTestUtil.py:
(LimitedRangeRequestHandler, LimitedRangeHTTPServer): New test
classes to emulate apache throwing 400: Bad Request when too much
ranges are specified.
(AuthRequestHandler.do_GET): Remove dead code. Yeah, I know,
not related to the bug :-/
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 2408.1.8 18 years ago Alexander Belchenko forget to return tree 12.9 KB Diff Download File
test_get_file_mtime.py 2405.3.1 18 years ago John Arbash Meinel Add some tests for get_file_mtime, and clean up ot 1.6 KB Diff Download File
test_get_symlink_target.py 2255.2.134 18 years ago John Arbash Meinel Add a tree-test for get_symlink_target and impleme 1.7 KB Diff Download File
test_inv.py 2408.1.3 18 years ago Alexander Belchenko tree_implementations: make usage of symlinks optio 9.7 KB Diff Download File
test_list_files.py 2255.2.71 18 years ago John Arbash Meinel Add a test for list_files, and implement it for Di 2.1 KB Diff Download File
test_revision_tree.py 1908.11.5 19 years ago John Arbash Meinel [merge] bzr.dev 2240 1.2 KB Diff Download File
test_test_trees.py 2408.1.3 18 years ago Alexander Belchenko tree_implementations: make usage of symlinks optio 13.6 KB Diff Download File
test_tree.py 2338.4.9 18 years ago Marien Zwart More tests for symlinks in tree inventories. 3.3 KB Diff Download File
test_walkdirs.py 2408.1.3 18 years ago Alexander Belchenko tree_implementations: make usage of symlinks optio 4.3 KB Diff Download File