Page MenuHomeSoftware Heritage

Make snapshot_add validate its input.
ClosedPublic

Authored by vlorentz on Aug 21 2019, 1:49 PM.

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

No modification in swh.storage.storage?

Nope, it already errors when this happens (or the tests wouldn't pass)

douardda added inline comments.
swh/storage/in_memory.py
764–765

nitpicking: use a genexp, no need for that list...

893

why do you need to explicitly convert this to a list?

I'm fine with this diff but I'm a bit nitpicky...

This revision now requires changes to proceed.Aug 28 2019, 3:46 PM
This revision is now accepted and ready to land.Aug 29 2019, 1:47 PM
This revision was automatically updated to reflect the committed changes.