Allow diff generation to specify extra_data for a review request.
Review Request #12253 — Created April 22, 2022 and submitted
SCMClient.diff()
can now return areview_request_extra_data
dictionary containing state to store on the review request's
extra_data
.If posting a brand-new review request, this will be stored directly on
the review request. If updating an existing one, this will be stored on
the draft.This can be useful for storing metadata that should show up in fields on
a review request, or for providing metadata that can be used for
enhanced matching of review requests when usingrbt post -u
(a
feature coming for RBTools 3.1 in an upcoming change).The data will be sent to Review Board through a JSON Merge Patch.
Unit tests pass for all supported versions of Python.
Modified the Git
diff
output to include some nested metadata and posted
locally. Verified the results in the posted review request, and then in the
draft.Tested an earlier version of this with the SOS work, verifying that the data
got into the review request and was displayed in the custom fields.
- Change Summary:
-
- Removed an unused import.
- Fixed a line length issue.
- Commits:
-
Summary ID 961204ef3060c5cd0dd2c7c9dfdf2579ca208770 014423304f58cae5c65ef709da01eed421529f10