Expose FileDiff.patched_sha256 and FileDiff.orig_sha256 to the API.
Review Request #14790 — Created Jan. 28, 2026 and submitted
We have these SHA hashes for file diffs that are useful to checksum the file diffs. They exist in the file diff's extra data and as attributes on the object, but aren't officially listed in our API. It'd be useful to expose them in the API so that callers can make use of them without having to reach into the extra data and know the internal key naming of the SHAs.
- Ran unit tests.
- Used in an upcoming RBTools change where I access the
patched_sha256
attribute via the API.
| Summary | ID |
|---|---|
| ad6ef22351060b200b19cafacb7b1e6f46750f1c |
| Description | From | Last Updated |
|---|---|---|
|
Parameter name should be filediff. |
|
|
|
Because the underlying property can return None, this should probably be return filediff.orig_sha256 or '' |
|
|
|
Parameter name should be filediff. |
|
|
|
Same here about None. |
|
|
|
Can you use :py:attr: to reference the attribute here? It'll need to be the full class+attribute path. |
|
|
|
Same here. |
|
- Commits:
-
Summary ID 98c2c7a050d9a82eaa136265a760d932735cc7c3 153e5f369f4aaa3d463160cd0b66da26fbb10565
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.