Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/interface.py
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | def directory_add_to_revision( | ||||
self, revision: RevisionEntry, directory: DirectoryEntry, path: bytes | self, revision: RevisionEntry, directory: DirectoryEntry, path: bytes | ||||
) -> None: | ) -> None: | ||||
"""Associate `directory` with `revision` in the provenance model. `path` is the | """Associate `directory` with `revision` in the provenance model. `path` is the | ||||
absolute path from `revision`'s root directory to `directory` (including | absolute path from `revision`'s root directory to `directory` (including | ||||
`directory`'s name). | `directory`'s name). | ||||
""" | """ | ||||
... | ... | ||||
def directory_already_flattenned(self, directory: DirectoryEntry) -> Optional[bool]: | def directory_already_flattened(self, directory: DirectoryEntry) -> Optional[bool]: | ||||
"""Check if the directory is already flattenned in the provenance model. If the | """Check if the directory is already flattened in the provenance model. If the | ||||
directory is unknown for the model, the methods returns None. | directory is unknown for the model, the methods returns None. | ||||
""" | """ | ||||
... | ... | ||||
def directory_flag_as_flattenned(self, directory: DirectoryEntry) -> None: | def directory_flag_as_flattened(self, directory: DirectoryEntry) -> None: | ||||
"""Mark the directory as flattenned in the provenance model. If the | """Mark the directory as flattened in the provenance model. If the | ||||
directory is unknown for the model, this method has no effect. | directory is unknown for the model, this method has no effect. | ||||
""" | """ | ||||
... | ... | ||||
def directory_get_date_in_isochrone_frontier( | def directory_get_date_in_isochrone_frontier( | ||||
self, directory: DirectoryEntry | self, directory: DirectoryEntry | ||||
) -> Optional[datetime]: | ) -> Optional[datetime]: | ||||
"""Retrieve the earliest known date of `directory` as an isochrone frontier in | """Retrieve the earliest known date of `directory` as an isochrone frontier in | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |