This is an archive of the discontinued Mercurial Phabricator instance.

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

Authored by phillco on Dec 4 2017, 3:46 AM.
Tags
None
Subscribers

Details

Summary

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.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

phillco created this revision.Dec 4 2017, 3:46 AM
Herald added a reviewer: Restricted Project. · View Herald TranscriptDec 4 2017, 3:46 AM
phillco added inline comments.Dec 4 2017, 3:47 AM
tests/test-treemanifest-repack.t
282

Is there a way I can cause another command to initialize the treestore? hg export and hg log --stat both don't in the test, though they do on my local machine.

durham accepted this revision.Dec 4 2017, 11:29 PM
durham added a subscriber: durham.
durham added inline comments.
tests/test-treemanifest-repack.t
282

Nope. For a server, the only way to make packs is to run repack.

This revision is now accepted and ready to land.Dec 4 2017, 11:29 PM