swh.vault.cookers.utils module#

swh.vault.cookers.utils.revision_log(storage, rev_id, per_page=1000)[source]#

Retrieve a revision log in a paginated way in order to avoid storage timeouts when the total number of revisions to fetch is large.

Parameters:
  • storage (swh.storage.storage.Storage) – instance of swh storage (either local or remote)

  • rev_id (bytes) – a revision identifier

  • per_page (Optional[int]) – the maximum number of revisions to return in each page

Yields:

dict – Revision information as a dictionary