package loaders: write extrinsic metadata to directories instead of revisions.
They are more useful on directories, as directory ids are more intrinsic than synthetic revision ids. And this adds the revision swhid in the context, so the revision relationship is still available when it's useful (eg. because the same directory can be referenced from multiple revisions).
Note that package loaders still write the original_artifacts
dict to the revision.
Part of the solution for T2668
Migrated from D4346 (view on Phabricator)
Merge request reports
Activity
Build is green
Patch application report for D4346 (id=15378)
Rebasing onto c30e4851...
Current branch diff-target is up to date.
Changes applied before test
commit 28bd28ca57a23d123dcc0931843e9a1d83c4d53d Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Fri Oct 23 16:52:23 2020 +0200 package loaders: write extrinsic metadata to directories instead of revisions. They are more useful on directories, as directory ids are more intrinsic than synthetic revision ids. And this adds the revision swhid in the context, so the revision relationship is still available when it's useful (eg. because the same directory can be referenced from multiple revisions).
See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/330/ for more details.
Build is green
Patch application report for D4346 (id=15484)
Rebasing onto e2726ef6...
First, rewinding head to replay your work on top of it... Applying: package loaders: write extrinsic metadata to directories instead of revisions.
Changes applied before test
commit 48e60d7d3b8c1baa78cb4252d9005b672237aa57 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Fri Oct 23 16:52:23 2020 +0200 package loaders: write extrinsic metadata to directories instead of revisions. They are more useful on directories, as directory ids are more intrinsic than synthetic revision ids. And this adds the revision swhid in the context, so the revision relationship is still available when it's useful (eg. because the same directory can be referenced from multiple revisions).
See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/333/ for more details.
Build is green
Patch application report for D4346 (id=15486)
Rebasing onto e2726ef6...
Current branch diff-target is up to date.
Changes applied before test
commit cf58604ccaa469a7d31c30c476a3b9187493e9ce Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Fri Oct 23 16:52:23 2020 +0200 package loaders: write extrinsic metadata to directories instead of revisions. They are more useful on directories, as directory ids are more intrinsic than synthetic revision ids. And this adds the revision swhid in the context, so the revision relationship is still available when it's useful (eg. because the same directory can be referenced from multiple revisions).
See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/335/ for more details.
mentioned in merge request !409 (closed)
mentioned in merge request swh-storage!996 (closed)