How Google migrated billions of lines of code from Perforce to Piper 2 years ago
Mercurial wasn't scalable either but the Mercurial community was much more receptive to changes to improve scalability. So Meta pushed Mercurial as far as possible with a single server solution while developing -> https://github.com/facebook/sapling.