Staging instance, all changes can be removed at any time

Skip to content

swh.model.hashutil: Remove deprecated hash_* function...

...to the benefit of the MultiHash api.

This closes the loop started with the pypi loader which pulled the MultiHash migration.

Depends on swh-vault!33 (closed) Depends on swh-archiver!12 (closed) Depends on swh-indexer!25 (closed)

Test Plan

  • in that repository: tox
  • in swh-environment: make test

And finally, the following commands no longer reveals those function calls:

$ cd swh-environment
$ grep -ri 'hash_data' | grep -v '.tox' | grep -v '.js' | grep -v 'cache' | grep -v '.html' | grep -v '.git' | grep -v '.txt' | grep -v '.build' | grep 'hash_'
$ grep -ri 'hash_file' | grep -v '.tox' | grep -v '.js' | grep -v 'cache' | grep -v '.html' | grep -v '.git' | grep -v '.txt' | grep -v '.build' | grep 'hash_'
$ grep -ri 'hash_path' | grep -v '.tox' | grep -v '.js' | grep -v 'cache' | grep -v '.html' | grep -v '.git' | grep -v '.txt' | grep -v '.build' | grep 'hash_'

Migrated from D598 (view on Phabricator)

Merge request reports

Loading