diff -ru bzrlib/transport/http/wsgi.py bzrlib/transport/http/wsgi.py --- bzrlib/transport/http/wsgi.py 2007-06-04 18:40:53.000000000 +0100 +++ bzrlib/transport/http/wsgi.py 2007-06-05 08:58:56.000000000 +0100 @@ -79,6 +79,7 @@ start_response('404 Not Found', {}) return [] environ['bzrlib.relpath'] = path[len(self.prefix):-len(suffix)] + print >>file("/tmplog.txt","a"), "RELP_OUT", environ['bzrlib.relpath'] return self.app(environ, start_response) @@ -113,9 +114,12 @@ relpath = environ['bzrlib.relpath'] transport = self.backing_transport.clone(relpath) + print >>file("/tmplog.txt","a"), "RELP_CONV", transport.base_path + print >>file("/tmplog.txt","a"), "RELP_CONV", transport.abspath(transport.base_path) out_buffer = StringIO() request_data_length = int(environ['CONTENT_LENGTH']) request_data_bytes = environ['wsgi.input'].read(request_data_length) + print >>file("/tmplog.txt","a"), "REQUEST", repr(request_data_bytes.rstrip()) smart_protocol_request = self.make_request( transport, out_buffer.write, request_data_bytes) if smart_protocol_request.next_read_size() != 0: @@ -126,6 +130,7 @@ response_data = 'error\x01incomplete request\n' else: response_data = out_buffer.getvalue() + print >>file("/tmplog.txt","a"), "RESPONSE", repr(response_data.rstrip()) headers = [('Content-type', 'application/octet-stream')] headers.append(("Content-Length", str(len(response_data)))) start_response('200 OK', headers) diff -ru bzrlib/transport/local.py bzrlib/transport/local.py --- bzrlib/transport/local.py 2007-06-04 18:40:53.000000000 +0100 +++ bzrlib/transport/local.py 2007-06-05 08:59:12.000000000 +0100 @@ -90,6 +90,7 @@ - relative_reference does not contain '..' - relative_reference is url escaped. """ + print >>file("/tmplog.txt","a"), self._local_base, urlutils.unescape(relative_reference) if relative_reference in ('.', ''): return self._local_base return self._local_base + urlutils.unescape(relative_reference) @@ -141,6 +142,7 @@ path = self._abspath(relpath) return open(path, 'rb') except (IOError, OSError),e: + print >>file("/tmplog.txt","a"), str(e) self._translate_error(e, path) def put_file(self, relpath, f, mode=None):