comparison hgeditor @ 34091:bbdca7e460c0

changegroup: fix to allow empty manifest parts The current chunk reading algorithm relied on counting the number of empty chunks and comparing it to the number of chunk lists it expected (1 list of files for cg1 and cg2, and 1 list of files + 1 list of trees for cg3). This implicitly assumed that both the changelog part and the manifestlog part were never empty (since them being empty would cause it to count it as one list being done, and screw up the count). In our treemanifest code, the manifest section could be empty, so we need to handle that case. This patches refactors that code to be more explicit about how it counts the expected parts. Differential Revision: https://phab.mercurial-scm.org/D646
author Durham Goode <durham@fb.com>
date Wed, 06 Sep 2017 18:33:55 -0700
parents 1aee2ab0f902
children
comparison
equal deleted inserted replaced
34088:a763c891f36e 34091:bbdca7e460c0