class documentation
class LocalGitClient(GitClient):
Git Client that just uses a local Repo.
Class Method | from |
Create an instance of this client from a urlparse.parsed object. |
Method | __init__ |
Create a new LocalGitClient instance. |
Method | fetch |
Fetch into a target repository. |
Method | fetch |
Retrieve a pack from a git smart server. |
Method | get |
Retrieve the current refs from a git smart server. |
Method | get |
Retrieves full url to given path. |
Method | send |
Upload a pack to a remote repository. |
Class Method | _open |
Undocumented |
Instance Variable | _report |
Undocumented |
Inherited from GitClient
:
Method | archive |
Retrieve an archive of the specified tree. |
Method | clone |
Clone a 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 |
overrides
dulwich.client.GitClient.fetch
Fetch into a target repository.
Parameters | |
path | Path to fetch from (as bytestring) |
target | Target repository to fetch into |
determine | Optional function determine what refs to fetch. Receives dictionary of name->sha, should return list of shas to fetch. Defaults to all shas. |
progress | Optional progress function |
depth | Shallow fetch depth |
Returns | |
FetchPackResult object |
overrides
dulwich.client.GitClient.fetch_pack
Retrieve a pack from a git smart server.
Parameters | |
path | Remote path to fetch from |
determine | Function determine what refs to fetch. Receives dictionary of name->sha, should return list of shas to fetch. |
graph | Object with next() and ack(). |
pack | Callback called for each bit of data in the pack |
progress | Callback for progress reports (strings) |
depth | Shallow fetch depth |
Returns | |
FetchPackResult object |
overrides
dulwich.client.GitClient.get_url
Retrieves full url to given path.
Parameters | |
path | Repository path (as string) |
Returns | |
Url to path (as string) |
overrides
dulwich.client.GitClient.send_pack
Upload a pack to a remote repository.
Parameters | |
path | Repository path (as bytestring) |
update | Function to determine changes to remote refs. Receive dict with existing remote refs, returns dict with changed refs (name -> sha, where sha=ZERO_SHA for deletions) with number of items and pack data to upload. |
generate | Undocumented |
progress | Optional progress function |
Returns | |
SendPackResult | |
Raises | |
SendPackError | if server rejects the pack data |