Skip to content

Fix P4Merge text argument order - #769

Merged
SimonCropp merged 1 commit into
mainfrom
fix-p4merge-text-argument-order
Aug 21, 2026
Merged

Fix P4Merge text argument order#769
SimonCropp merged 1 commit into
mainfrom
fix-p4merge-text-argument-order

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

p4merge takes its two files positionally as left right, so the file named first is the one shown on the left. The text branches had them the wrong way round: Left emitted "{temp}" "{target}" and Right emitted "{target}" "{temp}", the inverse of the binary branches directly below them and of every other tool definition.

So a default launch, which uses Right, opened with the target on the left, and setting DiffEngine_TargetOnLeft flipped it the wrong way. The generated docs recorded the same inversion.

Introduced by ff21ccc, which truncated the old four argument merge form base left right merged to its first two arguments, leaving what had been the base sitting in the left slot.

p4merge takes its two files positionally as `left right`, so the file
named first is the one shown on the left. The text branches had them the
wrong way round: Left emitted `"{temp}" "{target}"` and Right emitted
`"{target}" "{temp}"`, the inverse of the binary branches directly below
them and of every other tool definition.

So a default launch, which uses Right, opened with the target on the
left, and setting DiffEngine_TargetOnLeft flipped it the wrong way. The
generated docs recorded the same inversion.

Introduced by ff21ccc, which truncated the old four argument merge form
`base left right merged` to its first two arguments, leaving what had
been the base sitting in the left slot.
@SimonCropp SimonCropp added this to the 20.0.0 milestone Aug 21, 2026
@SimonCropp
SimonCropp merged commit 69a8b78 into main Aug 21, 2026
7 of 10 checks passed
@SimonCropp
SimonCropp deleted the fix-p4merge-text-argument-order branch August 21, 2026 10:28
This was referenced Aug 26, 2026
This was referenced Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant