Repository navigation
fix(engine): fix --modify-window to match upstream two-sided clamp - #2509
Merged
Merged
Conversation
- Fix destination_is_newer() to match upstream generator.c:2502 signed arithmetic: (source - dest) < modify_window - Source slightly newer within window now correctly treated as "equal" (skip transfer), matching upstream behavior - Add 8 unit tests covering both sides of the window boundary - Fix integration tests for correct upstream --update semantics
oferchen
force-pushed
the
fix/modify-window-two-sided-clamp
branch
from
February 27, 2026 03:38
5dc1d6c to
4de948d
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
fix(engine): fix --modify-window to match upstream two-sided clamp
oferchen
added a commit
that referenced
this pull request
May 5, 2026
fix(engine): fix --modify-window to match upstream two-sided clamp
4 tasks done
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
destination_is_newer()to match upstreamgenerator.c:2502signed arithmetic:(source_mtime - dest_mtime) < modify_windowsystem_time_within_window()was already correct; only the--updatepath was wrongTest plan
cargo fmt --all -- --checkpassescargo clippy --workspace --all-targets --all-features --no-deps -- -D warningspassescargo nextest run --workspace --all-featurespasses--update --modify-window=Nbehavior matches upstream rsync 3.4.1