Skip to content
Snippets Groups Projects
Forked from Platform / Development / swh-model
Source project has a limited visibility.
  • Nicolas Dandrimont's avatar
    9224c8ca
    Make revision/release identifiers explicitly the hash of a manifest · 9224c8ca
    Nicolas Dandrimont authored
    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.
    9224c8ca
    History
    Make revision/release identifiers explicitly the hash of a manifest
    Nicolas Dandrimont authored
    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.