swh.vault.cookers.revision_gitfast module#
- class swh.vault.cookers.revision_gitfast.RevisionGitfastCooker(swhid: CoreSWHID, backend, storage: StorageInterface, graph=None, objstorage: ObjStorageInterface | None = None, max_bundle_size: int = 536870912, thread_pool_size: int = 10)[source]#
Bases:
BaseVaultCooker
Cooker to create a git fast-import bundle
Initialize the cooker.
The type of the object represented by the id depends on the concrete class. Very likely, each type of bundle will have its own cooker class.
- Parameters:
swhid – id of the object to be cooked into a bundle.
backend – the vault backend (swh.vault.backend.VaultBackend).
- SUPPORTED_OBJECT_TYPES: ClassVar[Set[swh.model.swhids.ObjectType]] = {ObjectType.REVISION}#
- check_exists()[source]#
Checks that the requested object exists and can be cooked.
Override this in the cooker implementation.