HN Hall of Fame Weekly email

Scaling Mercurial at Facebook

code.facebook.com Research & data Technical reports Software engineering Candidate
Screenshot of code.facebook.com captured 2026-07-20
Page preview · captured 2026-07-20

The originally submitted URL now redirects to the address above. Updating the destination does not change the item’s HN history, Hall membership, or rank.

Resurfaced independently across 2 calendar years, with breakout response in 2 of them.

submissions
3
submitters
3
observed span
2014–2016
peak thread · 241 comments
360 pts
latest 20+ return · 2016-05-27
164 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

"We could have spent a lot of time making it more modular in a way that would be friendly to a source control tool, but there are a number of benefits to using a single repository. Even at our current scale, we often make large changes throughout our code base, and having a single repository is useful for continuous modernization. Splitting it up would make large, atomic refactorings more difficult. On top of that, the idea that the scaling constraints…

Our code base has grown organically and its internal dependencies are very complex. So instead of cleaning up the internal dependencies, they decided to rewrite Mercurial. That is the kind of thing Facebook likes to do: for example, when PHP got too slow, they wrote a PHP compiler....

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
525

reference only — not used in Hall rules or ranking

Total comments
313

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2014-01-07Scaling Mercurial at FacebookFirst breakout · Best threadjordigh360241
2016-04-28Scaling Mercurial at Facebook(2014)dineshp210
2016-05-27Scaling Mercurial at FacebookLatest 20+ point returnchairmanwow16472