2009-12-16 03:30:33 |
Martin Pool |
description |
>> Le mercredi 16 décembre 2009 à 00:52 +0200, Alexander Belchenko a
>> écrit :
>> > bzr branch https://spyderlib.googlecode.com/hg/ spyderlib
>>
>> Unfortunately this doesn't actually appear to work. We have a similar
>> problem with bzr-hg against Google code as we have for bzr-svn: Google
>> will return an error 405 when bzr attempts to access
>> .bzr/branch-format.
405 is 'not allowed', which is imo (without rereading the spec) a reasonable thing for an http server to do if it doesn't want to let you post to that url. We should probably cleanly handle that as "no smart server here?" |
>> Le mercredi 16 décembre 2009 à 00:52 +0200, Alexander Belchenko a
>> écrit :
>> > bzr branch https://spyderlib.googlecode.com/hg/ spyderlib
>>
>> Unfortunately this doesn't actually appear to work. We have a similar
>> problem with bzr-hg against Google code as we have for bzr-svn: Google
>> will return an error 405 when bzr attempts to access
>> .bzr/branch-format.
405 is 'not allowed', which is imo (without rereading the spec) a reasonable thing for an http server to do if it doesn't want to let you post to that url. We should probably cleanly handle that as "no smart server here?"
---
bzr: ERROR: bzrlib.errors.InvalidHttpResponse: Invalid http response for https://spyderlib.googlecode.com/.bzr/branch-format: Unable to handle http code 503: expected 200 or 404 for full response.
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 843, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1044, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 655, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1059, in ignore_pipe
result = func(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 2309, in run
revision, file_list)
File "/usr/lib/python2.6/dist-packages/bzrlib/log.py", line 1886, in _get_info_for_log_files
tree, b, path = bzrdir.BzrDir.open_containing_tree_or_branch(file_list[0])
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 971, in open_containing_tree_or_branch
bzrdir, relpath = klass.open_containing(location)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 898, in open_containing
return BzrDir.open_containing_from_transport(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 919, in open_containing_from_transport
result = BzrDir.open_from_transport(a_transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 873, in open_from_transport
redirected)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1644, in do_catching_redirections
return action(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 860, in find_format
transport, _server_formats=_server_formats)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1820, in find_format
return format.probe_transport(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1830, in probe_transport
format_string = transport.get_bytes(".bzr/branch-format")
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 609, in get_bytes
f = self.get(relpath)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 126, in get
code, response_file = self._get(relpath, None)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 169, in _get
return self._get_full(relpath)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 213, in _get_full
curl, 'expected 200 or 404 for full response.')
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 307, in _raise_curl_http_error
url, 'Unable to handle http code %d%s' % (code,msg))
InvalidHttpResponse: Invalid http response for https://spyderlib.googlecode.com/.bzr/branch-format: Unable to handle http code 503: expected 200 or 404 for full response. |
|
2009-12-16 03:30:50 |
Martin Pool |
description |
>> Le mercredi 16 décembre 2009 à 00:52 +0200, Alexander Belchenko a
>> écrit :
>> > bzr branch https://spyderlib.googlecode.com/hg/ spyderlib
>>
>> Unfortunately this doesn't actually appear to work. We have a similar
>> problem with bzr-hg against Google code as we have for bzr-svn: Google
>> will return an error 405 when bzr attempts to access
>> .bzr/branch-format.
405 is 'not allowed', which is imo (without rereading the spec) a reasonable thing for an http server to do if it doesn't want to let you post to that url. We should probably cleanly handle that as "no smart server here?"
---
bzr: ERROR: bzrlib.errors.InvalidHttpResponse: Invalid http response for https://spyderlib.googlecode.com/.bzr/branch-format: Unable to handle http code 503: expected 200 or 404 for full response.
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 843, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1044, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 655, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1059, in ignore_pipe
result = func(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 2309, in run
revision, file_list)
File "/usr/lib/python2.6/dist-packages/bzrlib/log.py", line 1886, in _get_info_for_log_files
tree, b, path = bzrdir.BzrDir.open_containing_tree_or_branch(file_list[0])
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 971, in open_containing_tree_or_branch
bzrdir, relpath = klass.open_containing(location)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 898, in open_containing
return BzrDir.open_containing_from_transport(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 919, in open_containing_from_transport
result = BzrDir.open_from_transport(a_transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 873, in open_from_transport
redirected)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1644, in do_catching_redirections
return action(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 860, in find_format
transport, _server_formats=_server_formats)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1820, in find_format
return format.probe_transport(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1830, in probe_transport
format_string = transport.get_bytes(".bzr/branch-format")
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 609, in get_bytes
f = self.get(relpath)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 126, in get
code, response_file = self._get(relpath, None)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 169, in _get
return self._get_full(relpath)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 213, in _get_full
curl, 'expected 200 or 404 for full response.')
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 307, in _raise_curl_http_error
url, 'Unable to handle http code %d%s' % (code,msg))
InvalidHttpResponse: Invalid http response for https://spyderlib.googlecode.com/.bzr/branch-format: Unable to handle http code 503: expected 200 or 404 for full response. |
>> Le mercredi 16 décembre 2009 à 00:52 +0200, Alexander Belchenko a
>> écrit :
>> > bzr branch https://spyderlib.googlecode.com/hg/ spyderlib
>>
>> Unfortunately this doesn't actually appear to work. We have a similar
>> problem with bzr-hg against Google code as we have for bzr-svn: Google
>> will return an error 405 when bzr attempts to access
>> .bzr/branch-format.
405 is 'not allowed', which is imo (without rereading the spec) a reasonable thing for an http server to do if it doesn't want to let you post to that url. We should probably cleanly handle that as "no smart server here?"
---
% bzr -Derror log https://spyderlib.googlecode.com/hg/
bzr: ERROR: bzrlib.errors.InvalidHttpResponse: Invalid http response for https://spyderlib.googlecode.com/.bzr/branch-format: Unable to handle http code 503: expected 200 or 404 for full response.
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 843, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1044, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 655, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1059, in ignore_pipe
result = func(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 2309, in run
revision, file_list)
File "/usr/lib/python2.6/dist-packages/bzrlib/log.py", line 1886, in _get_info_for_log_files
tree, b, path = bzrdir.BzrDir.open_containing_tree_or_branch(file_list[0])
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 971, in open_containing_tree_or_branch
bzrdir, relpath = klass.open_containing(location)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 898, in open_containing
return BzrDir.open_containing_from_transport(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 919, in open_containing_from_transport
result = BzrDir.open_from_transport(a_transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 873, in open_from_transport
redirected)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1644, in do_catching_redirections
return action(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 860, in find_format
transport, _server_formats=_server_formats)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1820, in find_format
return format.probe_transport(transport)
File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1830, in probe_transport
format_string = transport.get_bytes(".bzr/branch-format")
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 609, in get_bytes
f = self.get(relpath)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 126, in get
code, response_file = self._get(relpath, None)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 169, in _get
return self._get_full(relpath)
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 213, in _get_full
curl, 'expected 200 or 404 for full response.')
File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 307, in _raise_curl_http_error
url, 'Unable to handle http code %d%s' % (code,msg))
InvalidHttpResponse: Invalid http response for https://spyderlib.googlecode.com/.bzr/branch-format: Unable to handle http code 503: expected 200 or 404 for full response.
|
|