HomeSoftware Heritage

Extract the extra_headers from metadata on the Revision model class

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

Description

Extract the extra_headers from metadata on the Revision model class

Add a new extra_headers attribute on Revision and use it for computing
the revision's id instead of extract it from the metadata field.

Only accept (bytes, bytes) as extra_header.

Add a post init hook to Revision to initialize this new attribute from
given metadata, if any, for bw compat.

Also amend the revision_d hyptothesis strategy to generate extra_headers.

Commit No Longer Exists

This commit no longer exists in the repository.