Code review comment for lp:~mbp/bzr/497274-http-405

Revision history for this message
Martin Pool (mbp) wrote :

This tries to handle 'http 405 not allowed' from Google code as meaning "not allowed to look for .bzr", ie there's no bzr branch there. That may allow foreign branches to work against it. However, their servers keep falling over with '503 not available' errors, which make testing it difficult.

I've only tested this interactively not added tests. I probably should.

This prints and logs the actual message from the http response page.

It also tries to unify http response handling currently scattered across _pycurl.py into one method in the base class. This may be slightly dangerous to change as it's lightly tested and tries to work around server quirks, but any breakage should be shallow and it's worth clearing it up I think. I haven't yet gone through the urllib implementation.

« Back to merge proposal