Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/archive.py
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | class ArchiveInterface(Protocol): | ||||
def snapshot_get_heads(self, id: Sha1Git) -> Iterable[Sha1Git]: | def snapshot_get_heads(self, id: Sha1Git) -> Iterable[Sha1Git]: | ||||
"""List all revisions targeted by one snapshot. | """List all revisions targeted by one snapshot. | ||||
Args: | Args: | ||||
id: sha1 id of the snapshot. | id: sha1 id of the snapshot. | ||||
Yields: | Yields: | ||||
sha1 ids of revisions that are a target of such snapshot. Revisions are | sha1 ids of revisions that are a target of such snapshot. | ||||
guaranteed to be retrieved in chronological order | |||||
""" | """ | ||||
... | ... |