class documentation
class SSHGitClient(TraditionalGitClient):
Undocumented
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. |
Instance Variable | alternative |
Undocumented |
Instance Variable | host |
Undocumented |
Instance Variable | key |
Undocumented |
Instance Variable | password |
Undocumented |
Instance Variable | port |
Undocumented |
Instance Variable | ssh |
Undocumented |
Instance Variable | ssh |
Undocumented |
Instance Variable | username |
Undocumented |
Method | _connect |
Create a connection to the server. |
Method | _get |
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 |
def __init__(self, host, port=None, username=None, vendor=None, config=None, password=None, key_filename=None, ssh_command=None, **kwargs):
¶
Create a new GitClient instance.
Parameters | |
host | Undocumented |
port | Undocumented |
username | Undocumented |
vendor | Undocumented |
config | Undocumented |
password | Undocumented |
key | Undocumented |
ssh | 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) |