[MERGE] Implement bzr+http://

John Arbash Meinel john at arbash-meinel.com
Fri Dec 15 23:48:25 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, after messing around with dead ends all day, I figured out how to
enable bzr+http. There were really only 3 things that were important:

1) Get the configuration file working, so that Apache would hand off
control properly.

2) Add 'bzr+http://' as a netloc protocol. Otherwise it generates paths
like bzr+http: as the protocol, '' as the host, and //localhost/ as the
path.

3) Implement the SmartHTTPProtocol, such that it uses an HTTPTransport
to give it a remote base directory. And then use relative paths on top
of that. Rather than sending absolute paths over the request. The
biggest reason for this is because the only absolute paths the client
knows are full http:// urls. But Apache is the engine that is
translating the connections into local paths. And neither Apache nor
WSGI should be rewriting your POST data.

So I'm happy to say that this patch is nice and small. Which shows that
Andrew really did all the work to make it happen, I just hooked up the
last couple of bits.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFFgzRJJdeBCYSNAAMRAmE/AJMEMlyrkolQ/ww3vfBsdnq5qUsDAKCcWdFT
fN6gdityqxwDmyHV5NN46w==
=NOpK
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr_http.patch
Type: text/x-patch
Size: 3993 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061215/d9d3f30f/attachment.bin 


More information about the bazaar mailing list