News for hackers. Stuff that matters.
Re:Why Google Stores Billions of Lines of Code in a Single R... by slededit on Tuesday June 28, 2016 @10:08AM (#11993883)
Companies that do this don't require you to check out the world, that would be craziness. Perforce allows for partial mappings and is used by pretty much all the big companies. Even Microsoft's internal source depot is just a fork of perforce.

Dependencies are usually handled by a binary import/export system where you pull modules from a shared "build the world" system from a known checkpoint.

Re:Why Google Stores Billions of Lines of Code in a Single R... by wocram on Tuesday June 28, 2016 @10:37AM (#11994112)
Both git and hg supports shallow (low history) and sparse (selective files) checkouts as well, facebook has a blog post somewhere about how they built it into hg.
Re:Why Google Stores Billions of Lines of Code in a Single R... by kmiroslav on Tuesday June 28, 2016 @10:47AM (#11994186)
It's still not the same as perforce's mappings. Even with shallow repos, git will force you to download the entire world each time you pull or fetch.
Re:Why Google Stores Billions of Lines of Code in a Single R... by jahewson on Tuesday June 28, 2016 @11:54AM (#11994760)
That's not really the entire world though, because the history before the shallow clone will not be pulled or fetched. You'll get all the new stuff though.
Re:Why Google Stores Billions of Lines of Code in a Single R... by slededit on Tuesday June 28, 2016 @12:17PM (#11994972)
I don't think the scale of these places are fully appreciated. Your local enlistment could be a few hundred gigabytes and that is only the head revision of stuff you work with daily. Keeping more than just the current revision around is a lot of data for even a beefy workstation.