dulwich.tests.test_client.DummyClient(TraditionalGitClient)
class documentationdulwich.tests.test_client
(View In Hierarchy)
Method | __init__ | Create a new GitClient instance. |
Method | _connect | Create a connection to the server. |
Inherited from GitClient (via TraditionalGitClient):
Method | get_url | Retrieves full url to given path. |
Class Method | from_parsedurl | Create an instance of this client from a urlparse.parsed object. |
Method | fetch | Fetch into a target repository. |
Method | _parse_status_report | Undocumented |
Method | _read_side_band64k_data | Read per-channel data. |
Method | _handle_receive_pack_head | Handle the head of a 'git-receive-pack' request. |
Method | _negotiate_receive_pack_capabilities | Undocumented |
Method | _handle_receive_pack_tail | Handle the tail of a 'git-receive-pack' request. |
Method | _negotiate_upload_pack_capabilities | Undocumented |
Method | _handle_upload_pack_head | Handle the head of a 'git-upload-pack' request. |
Method | _handle_upload_pack_tail | Handle the tail of a 'git-upload-pack' request. |
Inherited from GitClient (via TraditionalGitClient):
Method | get_url | Retrieves full url to given path. |
Class Method | from_parsedurl | Create an instance of this client from a urlparse.parsed object. |
Method | fetch | Fetch into a target repository. |
Method | _parse_status_report | Undocumented |
Method | _read_side_band64k_data | Read per-channel data. |
Method | _handle_receive_pack_head | Handle the head of a 'git-receive-pack' request. |
Method | _negotiate_receive_pack_capabilities | Undocumented |
Method | _handle_receive_pack_tail | Handle the tail of a 'git-receive-pack' request. |
Method | _negotiate_upload_pack_capabilities | Undocumented |
Method | _handle_upload_pack_head | Handle the head of a 'git-upload-pack' request. |
Method | _handle_upload_pack_tail | Handle the tail of a 'git-upload-pack' request. |
Parameters | thin_packs | Whether or not thin packs should be retrieved |
report_activity | Optional callback for reporting transport activity. |
Create a connection to the server.
This method is abstract - concrete implementations should implement their own variant which connects to the server and returns an initialized Protocol object with the service ready for use and a can_read function which may be used to see if reads would block.
Parameters | cmd | The git service name to which we should connect. |
path | The path we should pass to the service. (as bytestirng) |