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
F19921716: D21761.diff
Mon, Apr 6, 8:00 AM
F19920125: D21761.diff
Sun, Apr 5, 12:55 PM
F19913340: D21761.diff
Fri, Apr 3, 1:35 AM
F19892575: D21761.diff
Sat, Mar 28, 2:22 AM
F19829126: D21761.id51881.diff
Mar 10 2026, 1:42 AM
F19748106: D21761.id51881.diff
Feb 15 2026, 7:03 PM
F19730679: D21761.id51876.diff
Feb 14 2026, 4:46 PM
F19553875: D21761.id51873.diff
Jan 29 2026, 3:11 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