Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/interface.py
Show First 20 Lines • Show All 502 Lines • ▼ Show 20 Lines | def revision_add(self, revisions: List[Revision]) -> Dict: | ||||
Summary dict of keys with associated count as values | Summary dict of keys with associated count as values | ||||
revision:add: New objects actually stored in db | revision:add: New objects actually stored in db | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("revision/missing") | @remote_api_endpoint("revision/missing") | ||||
def revision_missing(self, revisions): | def revision_missing(self, revisions: List[Sha1Git]) -> Iterable[Sha1Git]: | ||||
"""List revisions missing from storage | """List revisions missing from storage | ||||
Args: | Args: | ||||
revisions (iterable): revision ids | revisions: revision ids | ||||
Yields: | Yields: | ||||
missing revision ids | missing revision ids | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("revision") | @remote_api_endpoint("revision") | ||||
▲ Show 20 Lines • Show All 783 Lines • Show Last 20 Lines |