mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
This CL adds a new way of generating splittings, which clusters files based on their directory structure (while respecting `set noparent` in OWNERS files). The user provides a minimum and maximum acceptable number of files per CL, and the algorithm attempts to create CLs in that range with a single unique reviewer for each. I've tested it on some example CLs, and it seems to work well -- certainly better than the existing algorithm. Usage of the new algorithm is triggered by passing the `--target-range` option to `git cl split`. A second new argument, `--expect-owners-override`, may also be used to ignore OWNERS during the clustering algorithm. Bug: 389069356 Change-Id: I321e6424b2bdb7624b370af23b73759fda261161 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6324373 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Devon Loehr <dloehr@google.com>
42 KiB
42 KiB