Page MenuHomeSoftware Heritage

BaseLoader: Add 'origin_url' argument and remove 'prepare_origin_visit' method
ClosedPublic

Authored by vlorentz on Apr 21 2022, 9:50 AM.

Details

Summary

Loaders only use prepare_origin_visit to set the origin and visit date,
so it is simpler to do it in BaseLoader.__init__.

Diff Detail

Repository
rDLDBASE Generic VCS/Package Loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7610 (id=27566)

Rebasing onto cc227cab28...

Current branch diff-target is up to date.
Changes applied before test
commit 59814745be545c715db6b6e1794a92e5f29c50bc
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Apr 21 09:48:36 2022 +0200

    BaseLoader: Add 'origin_url' argument and remove 'prepare_origin_visit' method
    
    Loaders only use prepare_origin_visit to set the origin and visit date,
    so it is simpler to do it in `BaseLoader.__init__`.

See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/722/ for more details.

This revision is now accepted and ready to land.Apr 21 2022, 10:25 AM