HomeSoftware Heritage

relister: Fix consistently the behavior for the first time relisting

Description

relister: Fix consistently the behavior for the first time relisting

If nothing has been done prior to a full relisting, there is actually nothing
to list. So the relister in question does nothing.

In that context, the IndexingLister class's db_partition_indices method now
returns an empty list instead of raising a ValueError when there is nothing to
list.

Related T1826
Related e129e48

Details

Provenance
ardumontAuthored on Jun 21 2019, 7:42 PM
ardumontPushed on Jun 26 2019, 11:19 AM
Differential Revision
D1632: bitbucket: Allow incremental lister to start properly the first time
Parents
rDLS6662ae8db5f1: indexing_lister: Allow to define flush packet size
Branches
Unknown
Tags
Unknown
Build Status
Buildable 6493
Build 9038: test-and-build