HomeSoftware Heritage

Normalize _add() methods of the ProvenanceStorage interface

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Normalize _add() methods of the ProvenanceStorage interface

make them all accept a Dict[Sha1Git, xxx] as argument, ie:

  • remove support for Iterable[bytes] in revision_add, and
  • replace Iterable[bytes] by Dict[Sha1Git, bytes] for location_add

Currently, the sha1 of location path in location_add() is not really
used by any backend, so the computation of said hashed is a waste of
resource, but it makes the API of this interface much more consistent
which will be helpful for coming features (like kafka journal).

Commit No Longer Exists

This commit no longer exists in the repository.