Page MenuHomeSoftware Heritage

cookers: rewrite the I/O pipeline with file objects instead of generators
ClosedPublic

Authored by seirl on Jan 12 2018, 3:53 PM.

Diff Detail

Repository
rDVAU Software Heritage Vault
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

  • cookers: unify tar building in directory and revision_flat
  • revision_gitfast: leverage generators freed by the new IO pipeline for filecommands
olasd added a subscriber: olasd.

This does look cleaner than the previous iteration. A simple nitpick inline for you :)

I could bikeshed the BytesIOBundleSizeLimit class name as well (why "Bundle"?), but it's not terribly important.

swh/vault/cookers/base.py
45

shouldn't this call __init__ on the parent class as well?

This revision is now accepted and ready to land.Jan 16 2018, 1:23 PM
This revision was automatically updated to reflect the committed changes.