Page MenuHomeSoftware Heritage

mercurial.loader: Migrate to swh.model.hashutil.MultiHash
ClosedPublic

Authored by ardumont on Sep 21 2018, 6:06 PM.

Details

Summary

Note that i potentially broke silently (due to no test T.T) when
migrating swh-model (~> removing the with_length from the
hashutil.hash_data function)

That also fixes it (and computes the length of the data one less
time).

Related D410

Test Plan

Manual

Following the readme samples [1] to execute the loading on repositories.

[1] https://forge.softwareheritage.org/D437#change-e9wbZ9Ppa6Oy

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

README.md
32

No idea why i said that initially...

swh/loader/mercurial/bundle20_loader.py
230 ↗(On Diff #1345)

Would have broken if we had had triggered new mercurial loading...
(swh-model has been updated to the latest on swh-workers for running the loader-pypi).

Update diff from a branch (no change)

  • README.md: Remove unnecessary configuration (default)
  • mercurial.loader: Migrate to swh.model.hashutil.MultiHash
This revision is now accepted and ready to land.Sep 27 2018, 11:31 AM
This revision was automatically updated to reflect the committed changes.