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
F18417422: D20478.diff
Sat, Aug 30, 11:41 AM
F18100472: D20478.id.diff
Sat, Aug 9, 11:54 AM
F18049523: D20478.id48860.diff
Sun, Aug 3, 4:24 PM
F18028968: D20478.id48850.diff
Sat, Aug 2, 11:05 PM
F17974732: D20478.id.diff
Fri, Aug 1, 4:49 PM
F17968343: D20478.diff
Fri, Aug 1, 1:21 PM
F17947555: D20478.diff
Jul 31 2025, 5:19 PM
F17836528: D20478.id48860.diff
Jul 26 2025, 4:14 PM
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