class documentation
class DumbRemoteHTTPRepo:
Constructor: DumbRemoteHTTPRepo(base_url, http_request_func)
Repository implementation for dumb HTTP remotes.
| Method | __init__ |
Initialize a DumbRemoteHTTPRepo. |
| Method | fetch |
Fetch pack data from the remote. |
| Method | get |
Get the current HEAD reference. |
| Method | get |
Get the peeled value of a ref. |
| Method | get |
Get dictionary with all refs. |
| Instance Variable | base |
Undocumented |
| Instance Variable | object |
Undocumented |
| Method | _fetch |
Fetch content from a URL path relative to base_url. |
| Instance Variable | _http |
Undocumented |
| Instance Variable | _peeled |
Undocumented |
| Instance Variable | _refs |
Undocumented |
def fetch_pack_data(self, determine_wants:
Callable[ [ Mapping[ Ref, ObjectID], (int | None)], list[ ObjectID]], graph_walker: object, progress: Callable[ [ bytes], None] | None = None, *, get_tagged: bool | None = None, depth: int | None = None) -> Iterator[ UnpackedObject]:
¶
Fetch pack data from the remote.
This is the main method for fetching objects from a dumb HTTP remote. Since dumb HTTP doesn't support negotiation, we need to download all objects reachable from the wanted refs.
| Parameters | |
determineCallable[ | Function that returns list of wanted SHAs |
graphobject | GraphWalker instance (not used for dumb HTTP) |
progress:Callable[ | Optional progress callback |
getbool | None | Whether to get tagged objects |
depth:int | None | Depth for shallow clones (not supported for dumb HTTP) |
| Returns | |
Iterator[ | Iterator of UnpackedObject instances |