Add new state, capabilities, and debugging aids for patch-related objects.

Review Request #14040 — Created July 14, 2024 and updated

Information

RBTools
release-5.x

Reviewers

This updates a few of our core patch-related objects in preparation for
new patching support.

PatchAuthor now stores the full name as full_name, rather than
fullname. There's a legacy, deprecated alias to support the old name.
It also supports equality checks.

PatchResult has a new patch_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, and PatchResult all gained a __repr__()
method to aid in debugging.

Unit tests pass.

Used these with in-progress code.

Summary ID
Add new state, capabilities, and debugging aids for patch-related objects.
This updates a few of our core patch-related objects in preparation for new patching support. `PatchAuthor` now stores the full name as `full_name`, rather than `fullname`. There's a legacy, deprecated alias to support the old name. It also supports equality checks. `PatchResult` has a new `patch_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`, and `PatchResult` all gained a `__repr__()` method to aid in debugging.
bdd59d8332a0ccee5d60e04c680ea8ddbda2a3b1
Description From Last Updated

Typo: g

daviddavid
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. 
      
  2. rbtools/diffs/patches.py (Diff revision 1)
     
     
    Show all issues

    Typo: g

  3. 
      
maubin
  1. Ship It!
  2.