[MERGE] bzr help transport [take 3.. or 4]

Goffredo Baroncelli kreijack at tiscalinet.it
Fri Jan 26 21:39:18 GMT 2007


Hi all

Enclosed you can find patch which tries to implement the help transport topic. 

The patch implements a TransportListRegistry class based on the Registry 
class. So the transports are register in a Register class like other classes 
in bazaaar:
- this is a clean interface in order to browse the transports
- it is possible to register both the transport and the help ( and/or info)
- the default protocol definition is more clean

The interface is based on the two following methods
- TransportListRegistry.register_transport which registers the protocol prefix 
with the help
- TransportListRegistry.register_transport_provider ( and the "lazy" 
variant ): which registers the engine to a specific protocol.

This is needed because more engine can be registered under the same prefix  ( 
like HTTP, which use urllib and/or pycurl ), and because the same engine can 
be registered under different prefix ( like aftp:// and ftp:// ).

Also the  patch implements the transport topics. I used the term transport 
even tough others prefer therms like locationspec or urlspec. I prefer 
transport but I am open also to other suggestions.

$ ./bzr help transport

Supported transport protocols:
------------------------------
aftp://            Access using active FTP.
bzr+http://        Fast access using the Bazaar smart server over HTTP.
bzr+ssh://         Fast access using the Bazaar smart server over SSH.
bzr://             Fast access using the Bazaar smart server.
ftp://             Access using passive FTP.
http+pycurl://     Read-only access of branches exported on the web.
http+urllib://     Read-only access of branches exported on the web.
http://            Read-only access of branches exported on the web.
https+pycurl://    Read-only access of branches exported on the web using SSL.
https+urllib://    Read-only access of branches exported on the web using SSL.
https://           Read-only access of branches exported on the web using SSL.
sftp://            Access using SFTP (most SSH servers provide SFTP).

Supported modifiers:
-------------------
readonly+           This modifier converts any transport to be readonly.


Comments are welcome

Goffredo

-- 
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack at inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87  87C0 BB86 505C 6B2A CFF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-transport-registry-help-topics.diff
Type: text/x-diff
Size: 59763 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070126/07a45b4a/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070126/07a45b4a/attachment-0001.pgp 


More information about the bazaar mailing list