Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/archive.py
Show All 33 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 a target of such snapshot. | sha1 ids of revisions that are a target of such snapshot. Revisions are | ||||
guaranteed to be retrieved in chronological order | |||||
""" | """ | ||||
... | ... |