Page MenuHomeSoftware Heritage

storage.in_memory: Use integer ids for origin and visit instead of tuples
ClosedPublic

Authored by anlambert on Dec 4 2018, 1:36 PM.

Details

Summary

In order to match the real storage api and ease the drop of swh-storage
mocking used in a large amount of tests, use integer ids for origin
and visit instead of tuples.

Related T1421

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz added inline comments.
swh/storage/in_memory.py
564–570
661

sort by date + test case

803–804

add comment

838

sorting not needed

This revision is now accepted and ready to land.Dec 4 2018, 2:12 PM

Update: Address vlorentz comments

Update: Improve some docstrings

This revision was automatically updated to reflect the committed changes.