This is an archive of the discontinued Mercurial Phabricator instance.

treemanifest: improve server side incremental repack
ClosedPublic

Authored by durham on Nov 8 2017, 6:54 PM.
Tags
None
Subscribers

Details

Summary

Currently an incremental repack on the server will repack the entire pack files, and the new parts of the revlogs. The pack files can be very large and can take a long, long time to run. So let's use the normal incremental pack heuristics to minimize how often we have to do full repacks.

Test Plan

Added a test

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durham created this revision.Nov 8 2017, 6:54 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 8 2017, 6:54 PM
durham edited the summary of this revision. (Show Details)Nov 8 2017, 6:59 PM
durham edited the test plan for this revision. (Show Details)
phillco accepted this revision.Nov 9 2017, 1:21 PM
This revision is now accepted and ready to land.Nov 9 2017, 1:21 PM
quark accepted this revision.Nov 9 2017, 1:21 PM
quark added a subscriber: quark.
quark added inline comments.
treemanifest/__init__.py
1493

Do we really need stats here? If not, maybe set stat=False, or just use os.listdir instead of osutil.

This revision was automatically updated to reflect the committed changes.