Page MenuHomeSoftware Heritage

HgLoaderFromDisk: Simplify store_content using model.Content.from_data()
ClosedPublic

Authored by vlorentz on Mon, Mar 29, 2:27 PM.

Details

Summary

Instead of using hashutil.MultiHash directly and converting to model.Content.

Diff Detail

Repository
rDLDHG Mercurial 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 D5373 (id=19247)

Rebasing onto a62318d725...

Current branch diff-target is up to date.
Changes applied before test
commit 020791c464b79479b2c200f5d4568f512b1e905e
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Mar 29 14:27:10 2021 +0200

    HgLoaderFromDisk: Simplify store_content using model.Content.from_data()
    
    Instead of using hashutil.MultiHash directly and converting to model.Content.

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

This revision is now accepted and ready to land.Mon, Mar 29, 5:00 PM