Skip to content
Snippets Groups Projects
  1. Jun 11, 2021
  2. Jun 09, 2021
  3. May 19, 2021
  4. May 11, 2021
    • vlorentz's avatar
      identifiers: Expose git_object instead of manifest · 8c904dc6
      vlorentz authored
      The git_object is what will be actually useful to the vault.
      
      It's also easier to test, because test_identifier.py has the
      entire git_object in its test data.
      8c904dc6
    • vlorentz's avatar
      identifiers: Expose manifest computation · 523ab642
      vlorentz authored
      Before this commit, manifests were only computed internally before
      hashing, so they were not available to outside modules.
      
      This makes testing the module very painful, because identifier
      functions can only be tested by checking the hash; so test failures
      did not show mismatches between the computed manifest and
      the expected one.
      
      Additionally, the 'git bare cooker' of the vault is likely to use
      these as well, as it needs to format git objects in the same format.
      523ab642
  5. Apr 23, 2021
  6. Apr 15, 2021
  7. Apr 13, 2021
  8. Apr 12, 2021
  9. Apr 09, 2021
  10. Apr 08, 2021
  11. Mar 26, 2021
  12. Mar 18, 2021
  13. Mar 12, 2021
  14. Mar 10, 2021
    • David Douard's avatar
      Add an ExtID object · 71be4617
      David Douard authored
      this object aims at being able to keep in the SWH Archive an
        SWHID <-> External object ID
      map, e.g. to be able to keep track of Mercurial ids so the Mercurial
      loader can be made more efficient.
      
      Related to T2849.
      v2.1.0
      71be4617
  15. Mar 08, 2021
  16. Mar 04, 2021
  17. Mar 03, 2021
  18. Mar 01, 2021
  19. Feb 23, 2021
  20. Feb 19, 2021
    • vlorentz's avatar
      Use dict instead of temporary SWHID when parsing {Core,Qualified}SWHID. · 99237659
      vlorentz authored
      It is cleaner, avoids warnings, and will be needed when introducing
      ExtendedSWHID in a future commit.
      99237659
    • vlorentz's avatar
      QualifiedSWHID: Replace the 'qualifiers' dict with statically defined attributes · 8e917597
      vlorentz authored
      And store their parsed values (CoreSWHID, tuple of ints, etc.) instead of string.
      8e917597
    • vlorentz's avatar
      Add new class CoreSWHID as an alternative to SWHID/QualifiedSWHID · eba8d84d
      vlorentz authored
      Following the discussion on T3034, we decided to replace SWHID with
      two or three classes:
      
      * QualifiedSWHID to replace the existing SWHID (standard types + qualifiers)
      * CoreSWHID, for "core SWHID" only (standard types + no qualifiers)
      * ExtendedSWHID for internal use in Software Heritage (extra types + no qualifiers)
      
      This commit adds the second one
      eba8d84d
    • vlorentz's avatar
      Add new class QualifiedSWHID to replace SWHID, and deprecate the latter. · 690b7f82
      vlorentz authored
      Following the discussion on T3034, we decided to replace SWHID with
      two or three classes:
      
      * QualifiedSWHID to replace the existing SWHID (standard types + qualifiers)
      * CoreSWHID, for "core SWHID" only (standard types + no qualifiers)
      * ExtendedSWHID for internal use in Software Heritage (extra types + no qualifiers)
      
      Since migrating from SWHID will break existing code, this commit uses
      the opportunity to modernize it a little, ie.:
      
      * `keyword`-only constructor, to get rid of the hacky default values for
        `object_type` and `object_id`
      * enum instead of strings for the object type
      * `bytes` instead of an hex string for the object id
      * rename `metadata` to `qualifiers`
      690b7f82
Loading