Page MenuHomePhabricator

Add an "--auto" flag to "bin/differential migrate-hunk"
ClosedPublic

Authored by epriestley on Apr 16 2018, 1:45 PM.
Tags
None
Referenced Files
F19926187: D19371.id46336.diff
Tue, Apr 7, 3:35 PM
F18974180: D19371.diff
Nov 15 2025, 6:48 PM
F18815875: D19371.id.diff
Oct 21 2025, 4:06 AM
F18808370: D19371.diff
Oct 19 2025, 6:10 AM
F18622833: D19371.id.diff
Sep 15 2025, 1:06 PM
F18618724: D19371.diff
Sep 15 2025, 12:49 AM
F18610989: D19371.diff
Sep 14 2025, 5:53 AM
F18509573: D19371.id.diff
Sep 5 2025, 3:28 AM
Subscribers
None

Details

Summary

Depends on D19370. See T13124. See PHI549. The particular install in PHI549 migrated a large amount of data via the fallback hunk migration script, which does not compress hunks.

Add a mode to bin/differential migrate-hunk that amounts to "compress all the hunks which would benefit from compression".

Test Plan

Ran bin/differential migrate-hunk with --auto, --all, --to, --id, and --dry-run in various mixtures. Forced a bunch of hunks to raw ("byte") format, saw it cleanly upgrade them to compressed ("gzde") format.

Diff Detail

Repository
rP Phabricator
Branch
hunk3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20153
Build 27343: Run Core Tests
Build 27342: arc lint + arc unit