Add formal parsing of unstructured patch output.

Review Request #14238 — Created Nov. 10, 2024 and submitted

Information

RBTools
release-5.x

Reviewers

Patchers now have access to a parse_patch_output() command, which
attempts to parse out useful information from raw patch output. This
collects patched files, files with conflicts, any fatal errors found,
and flags for whether empty files or partially-applied files may have
been present.

Patcher subclasses can make use of this in response to their own patch
tool, or even override the parsing behavior.

Much of this logic existed in apply_single_patch(), and is now called
from there instead, simplifying the function and making for a good
example for other patchers to mirror.

Unit tests passed.

Summary ID
Add formal parsing of unstructured patch output.
Patchers now have access to a `parse_patch_output()` command, which attempts to parse out useful information from raw patch output. This collects patched files, files with conflicts, any fatal errors found, and flags for whether empty files or partially-applied files may have been present. `Patcher` subclasses can make use of this in response to their own patch tool, or even override the parsing behavior. Much of this logic existed in `apply_single_patch()`, and is now called from there instead, simplifying the function and making for a good example for other patchers to mirror.
bbca0b6609bb6bd6cab088686af5f9ba739a8f47
david
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.x (24ff7c5)