HomeSoftware Heritage

Make revision/release identifiers explicitly the hash of a manifest

Description

Make revision/release identifiers explicitly the hash of a manifest

This collapses the shared logic between these two identifier computations into a
few more explicit steps:

  • generate data for the manifest (in either identifier computation);
  • format the manifest (in the new format_manifest function);
  • hash the manifest (in the new hash_manifest function).

This will enable reusing this logic for more object types, as well as stronger
typing for the manifest computation.

Details

Provenance
olasdAuthored on Oct 14 2020, 6:44 PM
olasdPushed on Oct 19 2020, 12:12 PM
Differential Revision
D4262: Make revision/release identifiers explicitly the hash of a manifest
Parents
rDMODa251df2e5b31: Add a 'unique_key' method on model objects
Branches
Unknown
Tags
Unknown
Build Status
Buildable 16431
Build 25307: test-and-buildJenkins console · Jenkins