Changeset View
Changeset View
Standalone View
Standalone View
swh/web/ui/backend.py
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | def revision_get_multiple(sha1_git_bin_list): | ||||
Returns: | Returns: | ||||
Revisions' information as an iterable of dicts if any found, | Revisions' information as an iterable of dicts if any found, | ||||
an empty list otherwise | an empty list otherwise | ||||
Raises: | Raises: | ||||
ValueError if the identifier provided is not of sha1 nature. | ValueError if the identifier provided is not of sha1 nature. | ||||
""" | """ | ||||
print(sha1_git_bin_list) | |||||
ardumont: print! | |||||
res = main.storage().revision_get(sha1_git_bin_list) | res = main.storage().revision_get(sha1_git_bin_list) | ||||
if res and len(res) >= 1: | if res and len(res) >= 1: | ||||
return res | return res | ||||
return [] | return [] | ||||
def revision_log(sha1_git_bin, limit=100): | def revision_log(sha1_git_bin, limit=100): | ||||
"""Return information about the revision with sha1 sha1_git_bin. | """Return information about the revision with sha1 sha1_git_bin. | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |
print!