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
Unknown Object (File)
Sat, May 31, 4:32 PM
Unknown Object (File)
Fri, May 30, 9:49 PM
Unknown Object (File)
Mon, May 19, 6:44 AM
Unknown Object (File)
May 7 2025, 6:11 AM
Unknown Object (File)
May 5 2025, 4:50 AM
Unknown Object (File)
May 1 2025, 11:51 PM
Unknown Object (File)
Apr 29 2025, 4:06 PM
Unknown Object (File)
Apr 28 2025, 9:10 PM
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