Fix rbt patch to not show byte strings during conflicts.

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

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.

Summary ID
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
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.x (a60322d)
Loading...