Repository navigation
refactor(cli, engine): remove --delete-strict-order flag (#2270, #2271, #2273, #2274) - #4263
Merged
Merged
Conversation
Part of the DDP (parallel-flist deterministic delete) series. The opt-in `--delete-strict-order` flag (PR #4245, issue #1940) is replaced by a single deterministic per-directory deletion model described in docs/design/parallel-deterministic-delete.md. The new emitter wiring lands in DDP-E1..E5; until then the existing batched post-transfer sweep remains the live `--delete-during` path, so this PR removes only the flag, not the sweep. DDP-F3 (sweep removal) will follow once the emitter is wired as the live replacement. Removed across cli, core, and engine: the CLI argument definitions, parsed-args field, parser plumbing, help and supported-options strings, ClientConfig field/setter/accessor/default test, the run plumbing into LocalCopyOptions, the engine options field/setter/ accessor and four unit tests, the builder field/setter/default, and the strict-order branch plus the suppressed-post-transfer-sweep gate in the recursive directory executor. Closes #2270, #2271, #2273, #2274.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Part of the DDP (parallel-flist deterministic delete) series. The opt-in `--delete-strict-order` flag (PR #4245, issue #1940) is replaced by a single deterministic per-directory deletion model described in docs/design/parallel-deterministic-delete.md. The new emitter wiring lands in DDP-E1..E5; until then the existing batched post-transfer sweep remains the live `--delete-during` path, so this PR removes only the flag, not the sweep. DDP-F3 (sweep removal) will follow once the emitter is wired as the live replacement. Removed across cli, core, and engine: the CLI argument definitions, parsed-args field, parser plumbing, help and supported-options strings, ClientConfig field/setter/accessor/default test, the run plumbing into LocalCopyOptions, the engine options field/setter/ accessor and four unit tests, the builder field/setter/default, and the strict-order branch plus the suppressed-post-transfer-sweep gate in the recursive directory executor. Closes #2270, #2271, #2273, #2274.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Part of the DDP (parallel-flist deterministic delete) series. The opt-in `--delete-strict-order` flag (PR #4245, issue #1940) is replaced by a single deterministic per-directory deletion model described in docs/design/parallel-deterministic-delete.md. The new emitter wiring lands in DDP-E1..E5; until then the existing batched post-transfer sweep remains the live `--delete-during` path, so this PR removes only the flag, not the sweep. DDP-F3 (sweep removal) will follow once the emitter is wired as the live replacement. Removed across cli, core, and engine: the CLI argument definitions, parsed-args field, parser plumbing, help and supported-options strings, ClientConfig field/setter/accessor/default test, the run plumbing into LocalCopyOptions, the engine options field/setter/ accessor and four unit tests, the builder field/setter/default, and the strict-order branch plus the suppressed-post-transfer-sweep gate in the recursive directory executor. Closes #2270, #2271, #2273, #2274.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Part of the DDP (parallel-flist deterministic delete) series. The opt-in `--delete-strict-order` flag (PR #4245, issue #1940) is replaced by a single deterministic per-directory deletion model described in docs/design/parallel-deterministic-delete.md. The new emitter wiring lands in DDP-E1..E5; until then the existing batched post-transfer sweep remains the live `--delete-during` path, so this PR removes only the flag, not the sweep. DDP-F3 (sweep removal) will follow once the emitter is wired as the live replacement. Removed across cli, core, and engine: the CLI argument definitions, parsed-args field, parser plumbing, help and supported-options strings, ClientConfig field/setter/accessor/default test, the run plumbing into LocalCopyOptions, the engine options field/setter/ accessor and four unit tests, the builder field/setter/default, and the strict-order branch plus the suppressed-post-transfer-sweep gate in the recursive directory executor. Closes #2270, #2271, #2273, #2274.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of the DDP (parallel-flist deterministic delete) series tracked
by
docs/design/parallel-deterministic-delete.md. The opt-in--delete-strict-orderflag (PR #4245, issue #1940) is beingsuperseded by a single deterministic per-directory delete model that
reproduces upstream rsync 3.4.1 ordering byte-for-byte without a
user-visible flag and without a fallback path.
This PR removes only the flag (DDP-F1, F2, F4, F5). The existing
batched post-transfer
--delete-duringsweep is intentionallyretained for now: until DDP-E1..E5 wire the new emitter as the
live deletion path, removing the batched sweep would break
--delete-during. DDP-F3 will drop the batched sweep once theemitter is the live replacement.
Changes
--delete-strict-order/--no-delete-strict-orderargument definitions,
ParsedArgs::delete_strict_order, parserplumbing, help text, supported-options string, and four parser
unit tests.
ClientConfig::delete_strict_order,ClientConfigBuilder::delete_strict_order, the run-sideplumbing into
LocalCopyOptions, and thedelete_strict_order_default_is_falsetest.LocalCopyOptions::delete_strict_orderfieldand setter, the
delete_strict_order_enabledaccessor, the fourunit tests in
options/deletion.rs, the builder field, default,and setter, and the two integration tests in
local_copy/tests/delete.rs.--delete-strict-orderstrict-orderbranch and the
if !strict_order_active { ... }gate around thebatched post-transfer sweep in
directory/recursive/mod.rs. Thebatched sweep now runs unconditionally for
--delete-during,restoring the pre-feat(cli): --delete-strict-order opt-in gate for --delete-during (#1940) #4245 behaviour and preserving the live
--delete-duringpath until DDP-E1..E5 land.Design reference
docs/design/parallel-deterministic-delete.md(sections 1.2 and 2)explains why the opt-in flag was the wrong shape and how the new
two-phase emitter replaces it without a fallback.
Test plan
--delete-duringcontinues to remove extraneousdestination entries via the existing batched post-transfer sweep
(no behavioural change for users who never set
--delete-strict-order).