HomeSoftware Heritage

Refactor the database creation code and a test for the cli command

Description

Refactor the database creation code and a test for the cli command

this comes with a few changes in the configuration file format to
normalize it a bit and ease testing:

  • 'ps' config cls for the archive has been renamed as 'direct'
  • 'ps' confif cls for the provenance db has been renamed as 'local' (similar to other swh packages),
  • 'ps_np' has been suppressed in favor of a 'with_path' config flag in the 'provenance' section.

Note: this is only a first "normalization" step, further revisions will
come to use the swh.core.db scaffolding instead of the current ad hoc
code.

Details

Provenance
douarddaAuthored on Feb 10 2021, 5:05 PM
douarddaPushed on Feb 19 2021, 10:01 AM
Differential Revision
D5072: Refactor the db scaffolding to use swh.core.db
Parents
rDPROV48b9b0354d40: Blackify, isort and fix code spells reported by pre-commit hooks
Branches
Unknown
Tags
Unknown