Page MenuHomePhabricator

When building a synthetic diff in Differential, adjust diff properties correctly
ClosedPublic

Authored by epriestley on Apr 25 2019, 10:09 PM.
Tags
None
Referenced Files
F19472562: D20478.diff
Wed, Jan 7, 9:46 AM
F19203495: D20478.diff
Tue, Dec 16, 6:06 PM
F19095689: D20478.id48850.diff
Dec 4 2025, 5:51 AM
F18958015: D20478.id48850.diff
Nov 13 2025, 3:47 AM
F18903797: D20478.id48860.diff
Nov 8 2025, 6:19 AM
F18903796: D20478.id.diff
Nov 8 2025, 6:19 AM
F18839561: D20478.diff
Oct 27 2025, 5:12 PM
F18837150: D20478.id48850.diff
Oct 27 2025, 4:34 AM
Subscribers
None

Details

Reviewers
amckinley
Summary

See PHI1218. When rendering "A vs B", we currently show the properties of diff A without modification.

Instead, take properties from the same place we're taking change details.

See T12664 for a followup.

Test Plan
  • In diff A, removed "+x" from a file.
  • In diff B, changed the file but did not remove "+x" from it.
  • Diffed B vs A.
    • Before change: UI incorrectly shows "+x" removed (both sides incorrect, just showing the change from diff A).
    • After change: UI shows 100644 -> null, which is half right.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable