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
F18773626: D21761.id51881.diff
Thu, Oct 9, 11:16 AM
F18698115: D21761.diff
Sat, Sep 27, 10:52 AM
F18670042: D21761.id51873.diff
Wed, Sep 24, 10:51 PM
F18629123: D21761.id51878.diff
Tue, Sep 16, 8:03 AM
F18617270: D21761.id.diff
Sep 14 2025, 8:45 PM
F18616704: D21761.id51881.diff
Sep 14 2025, 6:40 PM
F18606530: D21761.diff
Sep 13 2025, 10:24 PM
F18604583: D21761.diff
Sep 13 2025, 6:58 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