Page MenuHomePhabricator

Fix an issue where Herald may fail to extract content from an empty commit
ClosedPublic

Authored by epriestley on Apr 20 2022, 4:53 PM.
Tags
None
Referenced Files
F13078253: D21761.diff
Tue, Apr 23, 12:55 PM
Unknown Object (File)
Sat, Apr 20, 5:50 PM
Unknown Object (File)
Tue, Apr 16, 11:53 PM
Unknown Object (File)
Thu, Apr 11, 8:49 AM
Unknown Object (File)
Thu, Apr 11, 1:05 AM
Unknown Object (File)
Fri, Apr 5, 2:22 AM
Unknown Object (File)
Sat, Mar 30, 10:23 AM
Unknown Object (File)
Fri, Mar 29, 11:28 PM
Subscribers
None

Details

Summary

Ref T13667. The Herald "content added" rule (and other similar rules) do not correctly extract content from empty commits.

When we load an empty raw diff, return an empty changed content map.

Ref T13588. Also fix some PHP8.1 null/string stuff

Test Plan
  • Ran "bin/repository reparse --publish <commit>", with an empty commit hash and a nonempty commit hash.
  • Reviewed Herald transcripts for general sanity.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable