Skip to content
Snippets Groups Projects
  1. Nov 12, 2020
  2. Oct 14, 2020
    • Nicolas Dandrimont's avatar
      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
  3. Sep 18, 2020
  4. Sep 17, 2020
  5. Jul 08, 2020
  6. Jul 07, 2020
  7. Jul 06, 2020
    • David Douard's avatar
      Extract the extra_headers from metadata on the Revision model class · a7d9aca2
      David Douard authored
      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.
      v0.4.0
      a7d9aca2
  8. Jul 03, 2020
    • Antoine Lambert's avatar
      identifiers: Rename some functions and types related to SWHIDs · 1ff05161
      Antoine Lambert authored
      When Software Heritage persistent identifiers were introduced, they were not
      yet abbreviated as SWHIDs.
      
      Now that abbreviation is growing adoption, rename some functions and types in
      swh.model.identifiers for consistency:
      
        - PersistentId -> SWHID
      
        - persistent_identifier -> swhid
      
        - parse_persistent_identifier -> parse_swhid
      
      Backward compatibility with previous naming is maintained but deprecation
      warnings are introduced to encourage the use of the new names.
      
      Numerous variables in swh.model codebase have also been renamed accordingly.
      
      Also rework and improve documentation.
      v0.3.8
      1ff05161
  9. Jun 15, 2020
  10. Apr 17, 2020
  11. Apr 08, 2020
    • David Douard's avatar
      Enable black · bf3f1cec
      David Douard authored
      - blackify all the python files,
      - enable black in pre-commit,
      - add a black tox environment.
      bf3f1cec
  12. Mar 23, 2020
  13. Feb 21, 2020
  14. Nov 29, 2019
  15. Oct 06, 2019
  16. Oct 04, 2019
  17. Sep 20, 2019
  18. Aug 23, 2019
  19. Jul 10, 2019
  20. Jun 27, 2019
  21. Apr 08, 2019
  22. Apr 04, 2019
  23. Sep 21, 2018
  24. Jul 20, 2018
  25. Jun 29, 2018
  26. Jun 21, 2018
  27. May 18, 2018
  28. Jan 31, 2018
Loading