HomePhabricator

treemanifest: wipe the shared cache if more than packs.maxpackfilecount in it

Authored by phillco.

Description

treemanifest: wipe the shared cache if more than packs.maxpackfilecount in it

Sometimes users end up with tens of thousands of shared packfiles, which
prevents Mercurial from working. Dropping them merely degrades offline support,
so let's choose the lesser of two evils.

Differential Revision: https://phab.mercurial-scm.org/D1582