Add new state, capabilities, and debugging aids for patch-related objects.
Review Request #14040 — Created July 14, 2024 and submitted — Latest diff uploaded
This updates a few of our core patch-related objects in preparation for
new patching support.
PatchAuthor
now stores the full name asfull_name
, rather than
fullname
. There's a legacy, deprecated alias to support the old name.
It also supports equality checks.
PatchResult
has a newpatch_range
attribute shows the range within a
set of patches that this result applies to. Note that one patch may
cover more than slot in the range (if squashed by a patcher).
Patch
,PatchAuthor
, andPatchResult
all gained a__repr__()
method to aid in debugging.
Unit tests pass.
Used these with in-progress code.