Page MenuHomeSoftware Heritage

Remove most manual Person() parsing in favor of Person.from_fullname
ClosedPublic

Authored by olasd on Feb 3 2022, 1:31 PM.

Details

Summary

This increases overall consistency and makes us compatible with the
latest version of swh.storage, which does Person.from_fullname() parsing
on output if name and email are None.

Test Plan

tests updated

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 D7072 (id=25660)

Rebasing onto 87de0140c1...

Current branch diff-target is up to date.
Changes applied before test
commit b3579ed07b634ca361ffe9a61f1835ecac41dd9b
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Thu Feb 3 13:30:18 2022 +0100

    Remove most manual Person() parsing in favor of Person.from_fullname
    
    This increases overall consistency and makes us compatible with the
    latest version of swh.storage, which does Person.from_fullname() parsing
    on output if name and email are None.

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

olasd requested review of this revision.Feb 3 2022, 1:33 PM
This revision is now accepted and ready to land.Feb 3 2022, 1:36 PM