Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/interface.py
Show First 20 Lines • Show All 495 Lines • ▼ Show 20 Lines | def revision_get(self, revision_ids: List[Sha1Git]) -> List[Optional[Revision]]: | |||||||||
revisions: revision ids | revisions: revision ids | |||||||||
Returns: | Returns: | |||||||||
list of revision object (if the revision exists or None otherwise) | list of revision object (if the revision exists or None otherwise) | |||||||||
""" | """ | |||||||||
... | ... | |||||||||
@remote_api_endpoint("revision/from_vcs") | ||||||||||
def revision_id_from_vcs( | ||||||||||
self, vcs_type: str, vcs_ids: List[bytes] | ||||||||||
) -> List[Optional[Sha1Git]]: | ||||||||||
"""Get revisions ids from original VCS id | ||||||||||
Args: | ||||||||||
vlorentzUnsubmitted Not Done Inline Actions
vlorentz: | ||||||||||
vcs_type: type of the VCS the revisions comes from | ||||||||||
vcs_ids: original VCS ids | ||||||||||
Returns: | ||||||||||
list of revisions' Sha1Git (if the revision exists or None otherwise) | ||||||||||
""" | ||||||||||
... | ||||||||||
@remote_api_endpoint("revision/log") | @remote_api_endpoint("revision/log") | |||||||||
def revision_log( | def revision_log( | |||||||||
self, revisions: List[Sha1Git], limit: Optional[int] = None | self, revisions: List[Sha1Git], limit: Optional[int] = None | |||||||||
) -> Iterable[Optional[Dict[str, Any]]]: | ) -> Iterable[Optional[Dict[str, Any]]]: | |||||||||
Not Done Inline Actions
vlorentz: | ||||||||||
"""Fetch revision entry from the given root revisions. | """Fetch revision entry from the given root revisions. | |||||||||
Args: | Args: | |||||||||
revisions: array of root revisions to lookup | revisions: array of root revisions to lookup | |||||||||
limit: limitation on the output result. Default to None. | limit: limitation on the output result. Default to None. | |||||||||
Yields: | Yields: | |||||||||
revision entries log from the given root root revisions | revision entries log from the given root root revisions | |||||||||
▲ Show 20 Lines • Show All 686 Lines • Show Last 20 Lines |