Skip to content

Add copy-links support for local copy operations - #972

Merged
oferchen merged 1 commit into
masterfrom
implement-missing-components-for-oc-rsync
Oct 23, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-missing-components-for-oc-rsync

Conversation

@oferchen

@oferchen oferchen commented Oct 23, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add CLI parsing for --copy-links/--no-copy-links and propagate the option through the client configuration
  • extend the local copy engine to follow symlink referents when requested, covering directories, files, and deletions
  • document the capability in the feature matrix and add focused unit tests for the parser and engine

Testing

  • cargo test -p rsync-cli parse_args_recognises_copy_links_flags
  • cargo test -p rsync-engine execute_with_copy_links_materialises_symlink_to_file
  • cargo test -p rsync-engine execute_with_copy_links_materialises_symlink_to_directory

@oferchen
oferchen merged commit 6efdd18 into master Oct 23, 2025
@oferchen
oferchen deleted the implement-missing-components-for-oc-rsync branch October 23, 2025 18:30

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread crates/cli/src/lib.rs
Comment on lines 1957 to 1961
.update(update)
.numeric_ids(numeric_ids)
.sparse(sparse)
.copy_links(copy_links)
.relative_paths(relative)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

oferchen added a commit that referenced this pull request May 7, 2026
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.
oferchen added a commit that referenced this pull request May 18, 2026
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.
oferchen added a commit that referenced this pull request Aug 24, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant