HomeSoftware Heritage

Refactor the JournalWriter class to normalize its methods

Description

Refactor the JournalWriter class to normalize its methods

make all the add_xxx methods take an Iterable as argument. Also extract
the conditional execution of the underlying journal method calls in a
dedicated methof to prevent repeating the `if self.journal` all over the
place.

Ensure all the storage code that uses this JournalWriter class are updated
accordingly.

Details

Provenance
douarddaAuthored on May 11 2020, 11:17 AM
douarddaPushed on May 12 2020, 9:51 AM
Differential Revision
D3138: Refactor the JournalWriter class to normalize its methods
Parents
rDSTOe64944bc53c9: tests: fix test_replay; do only use aware datetime objects
Branches
Unknown
Tags
Unknown
Build Status
Buildable 12333
Build 18701: test-and-buildJenkins console · Jenkins