class documentation
class TCPGitClient(TraditionalGitClient):
A Git Client that works over TCP directly (i.e. git://).
Class Method | from |
Create an instance of this client from a urlparse.parsed object. |
Method | __init__ |
Create a new GitClient instance. |
Method | get |
Retrieves full url to given path. |
Method | _connect |
Create a connection to the server. |
Instance Variable | _host |
Undocumented |
Instance Variable | _port |
Undocumented |
Inherited from TraditionalGitClient
:
Method | archive |
Retrieve an archive of the specified tree. |
Method | fetch |
Retrieve a pack from a git smart server. |
Method | get |
Retrieve the current refs from a git smart server. |
Method | send |
Upload a pack to a remote repository. |
Constant | DEFAULT |
Undocumented |
Instance Variable | _remote |
Undocumented |
Instance Variable | _report |
Undocumented |
Inherited from GitClient
(via TraditionalGitClient
):
Method | clone |
Clone a repository. |
Method | fetch |
Fetch into a target repository. |
Static Method | _should |
Undocumented |
Method | _handle |
Handle the tail of a 'git-receive-pack' request. |
Method | _negotiate |
Undocumented |
Method | _negotiate |
Undocumented |
Instance Variable | _fetch |
Undocumented |
Instance Variable | _report |
Undocumented |
Instance Variable | _send |
Undocumented |
overrides
dulwich.client.GitClient.from_parsedurl
Create an instance of this client from a urlparse.parsed object.
Parameters | |
parsedurl | Result of urlparse() |
**kwargs | Undocumented |
Returns | |
A GitClient object |
Create a new GitClient instance.
Parameters | |
host | Undocumented |
port | Undocumented |
**kwargs | Undocumented |
thin | Whether or not thin packs should be retrieved |
report | Optional callback for reporting transport activity. |
include | send annotated tags when sending the objects they point to |
overrides
dulwich.client.GitClient.get_url
Retrieves full url to given path.
Parameters | |
path | Repository path (as string) |
Returns | |
Url to path (as string) |
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) |