Skip to content

Support legacy negative option aliases - #2151

Merged
oferchen merged 1 commit into
masterfrom
implement-high-throughput-rsync-in-rust
Nov 14, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-high-throughput-rsync-in-rust

Conversation

@oferchen

@oferchen oferchen commented Nov 14, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add clap visible aliases for legacy negative flags such as --no-d, --no-p, --no-H, and the implied-dirs shorthands
  • extend parsing tests to cover the new alias handling
  • mark the affected options as implemented in the parity tracking document

Testing

  • cargo test -p cli parse_args_recognises_no -- --nocapture

[Codex Task](

@oferchen
oferchen merged commit 5304228 into master Nov 14, 2025
@oferchen
oferchen deleted the implement-high-throughput-rsync-in-rust branch November 14, 2025 14:27
oferchen added a commit that referenced this pull request May 15, 2026
…ths (#4099)

* feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths

Refs #2159, parent G5 meta #2151.

Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring
upstream rsync 3.4.1:

- NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236).
  Wired into the local-copy executor (three sites: --link-dest,
  cached-inode link, reference-directory link) and the receiver
  hardlink follower path.
- NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream:
  rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into
  the local-copy metadata-only skip path, the local-copy
  reference-directory `Skip` decision, the receiver hardlink
  already-linked branch, and the receiver symlink up-to-date branch.

Adds byte-for-byte pinning tests in both crates verifying the
emission shape and the level gate (suppressed below the configured
NAME level).

* style: apply rustfmt to NAME emission test imports and macro calls
oferchen added a commit that referenced this pull request May 15, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
oferchen added a commit that referenced this pull request May 16, 2026
Convert the compatibility-flags mutual-exclusion audit from a
current-state inventory into a historical record. Each gap row (G1-G4)
now cites the PR that landed the remediation:

- G1: --checksum-choice=none promotes whole_file=1 (PR #4066)
- G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064)
- G3: --append --whole-file rejected at config build time (PR #4049)
- G4: --delay-updates partial_dir promotion centralised (PR #4050)

Section 5 is replaced with a resolution-summary table. Footnotes [g]
and [j] are updated to describe the current behaviour and reference
the resolving PRs. The divergence descriptions are preserved so the
audit remains a record of the upstream-vs-oc-rsync conflict matrix
prior to remediation.

Refs: #2151, #2106
oferchen added a commit that referenced this pull request May 16, 2026
)

Convert the compatibility-flags mutual-exclusion audit from a
current-state inventory into a historical record. Each gap row (G1-G4)
now cites the PR that landed the remediation:

- G1: --checksum-choice=none promotes whole_file=1 (PR #4066)
- G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064)
- G3: --append --whole-file rejected at config build time (PR #4049)
- G4: --delay-updates partial_dir promotion centralised (PR #4050)

Section 5 is replaced with a resolution-summary table. Footnotes [g]
and [j] are updated to describe the current behaviour and reference
the resolving PRs. The divergence descriptions are preserved so the
audit remains a record of the upstream-vs-oc-rsync conflict matrix
prior to remediation.

Refs: #2151, #2106
oferchen added a commit that referenced this pull request May 18, 2026
…ths (#4099)

* feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths

Refs #2159, parent G5 meta #2151.

Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring
upstream rsync 3.4.1:

- NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236).
  Wired into the local-copy executor (three sites: --link-dest,
  cached-inode link, reference-directory link) and the receiver
  hardlink follower path.
- NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream:
  rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into
  the local-copy metadata-only skip path, the local-copy
  reference-directory `Skip` decision, the receiver hardlink
  already-linked branch, and the receiver symlink up-to-date branch.

Adds byte-for-byte pinning tests in both crates verifying the
emission shape and the level gate (suppressed below the configured
NAME level).

* style: apply rustfmt to NAME emission test imports and macro calls
oferchen added a commit that referenced this pull request May 18, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
oferchen added a commit that referenced this pull request May 18, 2026
)

Convert the compatibility-flags mutual-exclusion audit from a
current-state inventory into a historical record. Each gap row (G1-G4)
now cites the PR that landed the remediation:

- G1: --checksum-choice=none promotes whole_file=1 (PR #4066)
- G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064)
- G3: --append --whole-file rejected at config build time (PR #4049)
- G4: --delay-updates partial_dir promotion centralised (PR #4050)

Section 5 is replaced with a resolution-summary table. Footnotes [g]
and [j] are updated to describe the current behaviour and reference
the resolving PRs. The divergence descriptions are preserved so the
audit remains a record of the upstream-vs-oc-rsync conflict matrix
prior to remediation.

Refs: #2151, #2106
oferchen added a commit that referenced this pull request May 18, 2026
…ths (#4099)

* feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths

Refs #2159, parent G5 meta #2151.

Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring
upstream rsync 3.4.1:

- NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236).
  Wired into the local-copy executor (three sites: --link-dest,
  cached-inode link, reference-directory link) and the receiver
  hardlink follower path.
- NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream:
  rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into
  the local-copy metadata-only skip path, the local-copy
  reference-directory `Skip` decision, the receiver hardlink
  already-linked branch, and the receiver symlink up-to-date branch.

Adds byte-for-byte pinning tests in both crates verifying the
emission shape and the level gate (suppressed below the configured
NAME level).

* style: apply rustfmt to NAME emission test imports and macro calls
oferchen added a commit that referenced this pull request May 18, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
oferchen added a commit that referenced this pull request May 18, 2026
)

Convert the compatibility-flags mutual-exclusion audit from a
current-state inventory into a historical record. Each gap row (G1-G4)
now cites the PR that landed the remediation:

- G1: --checksum-choice=none promotes whole_file=1 (PR #4066)
- G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064)
- G3: --append --whole-file rejected at config build time (PR #4049)
- G4: --delay-updates partial_dir promotion centralised (PR #4050)

Section 5 is replaced with a resolution-summary table. Footnotes [g]
and [j] are updated to describe the current behaviour and reference
the resolving PRs. The divergence descriptions are preserved so the
audit remains a record of the upstream-vs-oc-rsync conflict matrix
prior to remediation.

Refs: #2151, #2106
oferchen added a commit that referenced this pull request Aug 24, 2026
…ths (#4099)

* feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths

Refs #2159, parent G5 meta #2151.

Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring
upstream rsync 3.4.1:

- NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236).
  Wired into the local-copy executor (three sites: --link-dest,
  cached-inode link, reference-directory link) and the receiver
  hardlink follower path.
- NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream:
  rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into
  the local-copy metadata-only skip path, the local-copy
  reference-directory `Skip` decision, the receiver hardlink
  already-linked branch, and the receiver symlink up-to-date branch.

Adds byte-for-byte pinning tests in both crates verifying the
emission shape and the level gate (suppressed below the configured
NAME level).

* style: apply rustfmt to NAME emission test imports and macro calls
oferchen added a commit that referenced this pull request Aug 24, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
oferchen added a commit that referenced this pull request Aug 24, 2026
)

Convert the compatibility-flags mutual-exclusion audit from a
current-state inventory into a historical record. Each gap row (G1-G4)
now cites the PR that landed the remediation:

- G1: --checksum-choice=none promotes whole_file=1 (PR #4066)
- G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064)
- G3: --append --whole-file rejected at config build time (PR #4049)
- G4: --delay-updates partial_dir promotion centralised (PR #4050)

Section 5 is replaced with a resolution-summary table. Footnotes [g]
and [j] are updated to describe the current behaviour and reference
the resolving PRs. The divergence descriptions are preserved so the
audit remains a record of the upstream-vs-oc-rsync conflict matrix
prior to remediation.

Refs: #2151, #2106
oferchen added a commit that referenced this pull request Aug 24, 2026
…ths (#4099)

* feat(logging): wire --info=NAME level 2 emissions in copy/link/del paths

Refs #2159, parent G5 meta #2151.

Adds per-file action lines for `--info=NAME` levels 1 and 2 mirroring
upstream rsync 3.4.1:

- NAME 1 `"%s => %s"` for hard-link creation (upstream: hlink.c:236).
  Wired into the local-copy executor (three sites: --link-dest,
  cached-inode link, reference-directory link) and the receiver
  hardlink follower path.
- NAME 2 `"%s is uptodate"` for matched/quick-check paths (upstream:
  rsync.c:672-676, generator.c:1010/1133, hlink.c:223). Wired into
  the local-copy metadata-only skip path, the local-copy
  reference-directory `Skip` decision, the receiver hardlink
  already-linked branch, and the receiver symlink up-to-date branch.

Adds byte-for-byte pinning tests in both crates verifying the
emission shape and the level gate (suppressed below the configured
NAME level).

* style: apply rustfmt to NAME emission test imports and macro calls
oferchen added a commit that referenced this pull request Aug 24, 2026
…4105)

* feat(transfer): wire --debug=HLINK producer emissions (3.4.1 parity)

Adds byte-for-byte HLINK debug emissions matching upstream rsync's
hlink.c:
- HLINK,3 per-device hashtable announcement (idev_find).
- HLINK,2 follower diagnostics (virtual first / waiting / looking for
  a leader / found flist match / leader is) at the receiver hardlink
  resolution site, plus helper exports for future wiring sites.

Includes pinning tests over each emission shape and a receiver-side
integration test confirming the wiring fires under --debug=HLINK.

Refs #2188, #2151.

* style: apply rustfmt to HLINK trace helpers and call sites
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