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
Unknown Object (File)
Mon, Nov 18, 10:45 AM
Unknown Object (File)
Thu, Nov 14, 10:03 PM
Unknown Object (File)
Thu, Nov 14, 5:25 AM
Unknown Object (File)
Thu, Nov 14, 3:43 AM
Unknown Object (File)
Thu, Nov 14, 1:47 AM
Unknown Object (File)
Wed, Nov 13, 7:24 PM
Unknown Object (File)
Tue, Nov 12, 3:18 PM
Unknown Object (File)
Sun, Nov 10, 5:42 AM
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