Changeset View
Changeset View
Standalone View
Standalone View
swh/vault/cookers/revision_flat.py
# Copyright (C) 2016-2019 The Software Heritage developers | # Copyright (C) 2016-2019 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from pathlib import Path | from pathlib import Path | ||||
import tarfile | import tarfile | ||||
import tempfile | import tempfile | ||||
from swh.model import hashutil | from swh.model import hashutil | ||||
from swh.model.identifiers import ObjectType | from swh.model.swhids import ObjectType | ||||
from swh.vault.cookers.base import BaseVaultCooker | from swh.vault.cookers.base import BaseVaultCooker | ||||
from swh.vault.cookers.utils import revision_log | from swh.vault.cookers.utils import revision_log | ||||
from swh.vault.to_disk import DirectoryBuilder | from swh.vault.to_disk import DirectoryBuilder | ||||
class RevisionFlatCooker(BaseVaultCooker): | class RevisionFlatCooker(BaseVaultCooker): | ||||
"""Cooker to create a revision_flat bundle """ | """Cooker to create a revision_flat bundle """ | ||||
Show All 18 Lines |