HomeSoftware Heritage

merge nested functions which yield into single functions

Description

merge nested functions which yield into single functions

Merge swh_hash_data_per_cvs_changeset() + process_cvs_changesets().
Merge swh_hash_data_per_cvs_rlog_changeset() + process_cvs_rlog_changesets().

Makes the code easier to follow and makes return values typed.

Also, cvs_changesets does not need to be a class member.
Make it a local variable instead. Pointed out by mypy.

Suggested by vlorentz.

Details

Provenance
stspAuthored on Sep 15 2021, 1:51 PM
stspPushed on Sep 17 2021, 2:48 PM
Differential Revision
D5988: initial CVS loader stub
Parents
rDLDCVSfa9121756333: simplify use of os.makedirs(); from vlorentz
Branches
Unknown
Tags
Unknown
Tasks
T2845: Improve Subversion loader and develop CVS loader
Build Status
Buildable 23766
Build 37066: test-and-buildJenkins console · Jenkins