class documentation

class Bundle:

View In Hierarchy

Git bundle object representation.

Method __del__ Warn if bundle was not explicitly closed.
Method __enter__ Enter context manager.
Method __eq__ Check equality with another Bundle.
Method __exit__ Exit context manager and close bundle.
Method __repr__ Return string representation of Bundle.
Method close Close any open resources in this bundle.
Method store_objects Store all objects from this bundle into an object store.
Class Variable capabilities Undocumented
Class Variable prerequisites Undocumented
Class Variable references Undocumented
Class Variable version Undocumented
Instance Variable pack_data Undocumented
def __del__(self):

Warn if bundle was not explicitly closed.

def __enter__(self) -> Bundle:

Enter context manager.

def __eq__(self, other: object) -> bool:

Check equality with another Bundle.

def __exit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: types.TracebackType | None):

Exit context manager and close bundle.

def __repr__(self) -> str:

Return string representation of Bundle.

def close(self):

Close any open resources in this bundle.

def store_objects(self, object_store: BaseObjectStore, progress: Callable[[str], None] | None = None):

Store all objects from this bundle into an object store.

Parameters
object_store:BaseObjectStoreThe object store to add objects to
progress:Callable[[str], None] | NoneOptional progress callback function
capabilities: dict[str, str | None] =

Undocumented

prerequisites: list[tuple[ObjectID, bytes]] =

Undocumented

references: dict[Ref, ObjectID] =

Undocumented

version: int | None =

Undocumented

pack_data: PackDataLike | None =

Undocumented