[MERGE][1.6][#254797] Fix NotImplementedError when probing for smart protocol via HTTP.
Andrew Bennetts
andrew at canonical.com
Thu Aug 14 03:23:08 BST 2008
This fixes a regression introduced in 1.6. Probing for a smart server over HTTP was
triggering a NotImplementedError, because read_line was not implemented on the
HTTP medium request class.
This fix implements that method, and does some very simple refactoring to do so
without duplicating code.
It also adds a simple test to test_http that fails without this fix.
Implementing that test required improving the HTTPServerWithSmarts test helper
to behave a little more realistically.
Despite the size of the diff, this is a simple and I believe safe change to
incorporate in 1.6 final. The bulk of the diff affects code that was not
working without this fix, or tests for that fix. The rest is a straightforward
refactoring of code that has extensive test coverage.
-Andrew.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hpss-http-bug-3607.patch
Type: text/x-diff
Size: 10323 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080814/3cc0fc3d/attachment.bin
More information about the bazaar
mailing list