Repository navigation
Add copy-links support for local copy operations - #972
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .update(update) | ||
| .numeric_ids(numeric_ids) | ||
| .sparse(sparse) | ||
| .copy_links(copy_links) | ||
| .relative_paths(relative) |
There was a problem hiding this comment.
Forward copy-links flag to fallback invocations
The CLI now parses --copy-links and sets ClientConfig::copy_links (see the newly added .copy_links(copy_links) call). However, the remote fallback path builds RemoteFallbackArgs without any copy_links field and run_remote_transfer_fallback never adds --copy-links/--no-copy-links to the spawned rsync command. Any transfer that hits the fallback code path (e.g. remote operands or --whole-file disabled) will silently preserve symlinks even when the user requested referents, so the new flag only works for local copies. Either propagate the flag into RemoteFallbackArgs and append the appropriate argument when spawning rsync, or document that the flag is local-only.
Useful? React with 👍 / 👎.
Plan re-baselines peak RSS for full vs incremental flist on 100K and 1M directory pushes after #1862 landed sender INC_RECURSE. Captures the state machine in crates/transfer/src/generator/file_list/inc_recurse.rs plus the receiver-side path in receiver/file_list.rs, and ties the bench gate to the v0.6.1 push regression revert (#3744) so default-flip needs both wall-clock and RSS evidence. Refs #1864, #1862, #966, #971, #972, #2088.
Plan re-baselines peak RSS for full vs incremental flist on 100K and 1M directory pushes after #1862 landed sender INC_RECURSE. Captures the state machine in crates/transfer/src/generator/file_list/inc_recurse.rs plus the receiver-side path in receiver/file_list.rs, and ties the bench gate to the v0.6.1 push regression revert (#3744) so default-flip needs both wall-clock and RSS evidence. Refs #1864, #1862, #966, #971, #972, #2088.
Plan re-baselines peak RSS for full vs incremental flist on 100K and 1M directory pushes after #1862 landed sender INC_RECURSE. Captures the state machine in crates/transfer/src/generator/file_list/inc_recurse.rs plus the receiver-side path in receiver/file_list.rs, and ties the bench gate to the v0.6.1 push regression revert (#3744) so default-flip needs both wall-clock and RSS evidence. Refs #1864, #1862, #966, #971, #972, #2088.
Summary
--copy-links/--no-copy-linksand propagate the option through the client configurationTesting