Page MenuHomeSoftware Heritage

swh.objstorage: Migrate to latest swh.model.hashutil.MultiHash
ClosedPublic

Authored by ardumont on Oct 23 2018, 6:54 PM.

Details

Summary

Remove redundant calls in tests

requirements: Bump to latest dependency

Diff Detail

Repository
rDOBJS Object storage
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont added inline comments.
swh/objstorage/objstorage_pathslicing.py
260

I'm wondering if we should not remove that block.
And add that back the day we actually need it.

context: ID_HASH_ALGO is sha1 from the start... so we never went through that if block

olasd added a subscriber: olasd.
olasd added inline comments.
swh/objstorage/objstorage_pathslicing.py
260

Ideally we'd test an objstorage with a different ID_HASH_ALGO, but I agree that the usefulness of supporting git-style hashes is very limited.

This revision is now accepted and ready to land.Oct 24 2018, 11:11 AM
This revision was automatically updated to reflect the committed changes.