for idx in $(find -name "*.idx"); do git show-index < "$idx" | wc -l; done produces 13375 lines of the individual index counts. If you meant for idx in $(find -name "*.idx"); do git show-index < "$idx"; done | wc -l then the answer is 1518879293. Regarding the OverflowError, this is running with both --auto and --force here. Though apparently completing successfully (and an exit code of 0), a previous midx invocation left behind this: -rw-rw-r-- 1 mjh mjh 72974762439 Mar 31 23:25 midx-a31f6a32ad71c26ffb78d753f54291900247848e.midx which is the apparent cause of the subsequent overflow. If I remove this, the generated midx is then -rw-rw-r-- 1 mjh mjh 36487381225 Apr 1 17:07 midx-f20258f451b0dce6ee866fd3e27805f03754c552.midx and now (nondeterminism, or at least ignorance of relevant parameters is at work here), can now be built without the debugging. So several weird things on a large repository, but nothing as concrete now as it was a week ago when I found the apparently hung "bup midx" processes, and the ease with which I could reproduce that on another machine with a copy of the repo. I'll continue digging - I'll add your suggested line below soon. Mark
On 01/04/2026 18:15, Rob Browning wrote:
Given the OverflowError you reported, perhaps also include a
log(f'...{total}...\n') before the merge_into call in the instrumented
version if you can.
-- Mark J Hewitt