Fix `rbt patch` applying patches with binary files from pre-6.0
Review Request #15005 — Created April 4, 2026 and updated — Latest diff uploaded
When a review request including binary files was posted with older
versions of RBTools (or if uploading of binary files did not occur, for
example, for very large files),rbt patchwould crash attempting to
access the non-existent FileAttachment.This change makes it so we check if the attachment exists first, and
adds a variety of tests for therbt patchcommand to test various
aspects of binary file patching.
- Ran unit tests.