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
F18226502: D21761.diff
Wed, Aug 20, 4:17 AM
F18209135: D21761.id51873.diff
Mon, Aug 18, 10:24 PM
F18199143: D21761.id51876.diff
Mon, Aug 18, 1:37 AM
F18198325: D21761.id51878.diff
Mon, Aug 18, 12:10 AM
F18189009: D21761.diff
Sat, Aug 16, 9:32 PM
F18106639: D21761.id.diff
Sun, Aug 10, 11:11 PM
F17937182: D21761.id51876.diff
Thu, Jul 31, 12:55 AM
F17829137: D21761.id51873.diff
Jul 26 2025, 9:49 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