Fix rbt patch to not show byte strings during conflicts.

Review Request #12365 — Created June 13, 2022 and submitted — Latest diff uploaded

Information

RBTools
release-3.x

Reviewers

When rbt patch attempts to patch a change and encounters conflicts, it
displays the names of the affected files. This was being shown as a byte
string, rather than a Unicode string. We were doing the right thing by
converting it to a Unicode string for the JSON output, but not for the
displayed output.

This change converts the filename before outputting it for text or JSON.

Triggered a patch with conflicts and saw the proper output.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Fix rbt patch to not show byte strings during conflicts.
When `rbt patch` attempts to patch a change and encounters conflicts, it displays the names of the affected files. This was being shown as a byte string, rather than a Unicode string. We were doing the right thing by converting it to a Unicode string for the JSON output, but not for the displayed output. This change converts the filename before outputting it for text or JSON.
930e268313a4ed848452df476aed8bc8099221fe Christian Hammond
rbtools/commands/patch.py
Loading...