Page MenuHomePhabricator

For changesets that affect binaries, use the new binary file content hash as an effect hash
ClosedPublic

Authored by epriestley on Apr 27 2020, 3:29 PM.
Tags
None
Referenced Files
F18090944: D21174.id.diff
Wed, Aug 6, 6:13 PM
F18086820: D21174.diff
Wed, Aug 6, 12:19 AM
F18086565: D21174.diff
Tue, Aug 5, 10:48 PM
Unknown Object (File)
Jul 1 2025, 5:13 PM
Unknown Object (File)
Jun 19 2025, 7:30 AM
Unknown Object (File)
May 31 2025, 4:32 PM
Unknown Object (File)
May 30 2025, 9:49 PM
Unknown Object (File)
May 19 2025, 6:44 AM
Subscribers
None

Details

Summary

Ref T13522. When changesets update an image, we currently compute no effect hash. A content hash of the image (or other binary file) is a reasonable effect hash, and enalbes effect-hash-based behavior, including hiding files in intradiffs.

Test Plan
  • Created a revision affecting cat.png and quack.txt (currently, there must be 2+ changesets to trigger the hide logic).
  • Updated it with the exact same changes.
  • Viewed revision:
    • Saw the image renderered in the interdiff.
  • Applied patch.
  • Ran bin/differential rebuild-changesets ....
  • Viewed revision:
    • Saw both changesets collapse as unchanged.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable