fix eden debug journal's output

Summary:
Fix the output of `eden debug journal` after changing the Thrift API
to pass paths in bytes instead of strings.

Reviewed By: simpkins

Differential Revision: D9403416

fbshipit-source-id: acd9d0f8b241d11295a48fa11f9cc59bd86381f2
This commit is contained in:
Chad Austin 2018-08-20 13:42:05 -07:00 committed by Facebook Github Bot
parent 96c7bb1c5f
commit 7a6deb1d47

View File

@ -883,10 +883,10 @@ def print_raw_journal_deltas(
continue
label = labels[(info.existedBefore, info.existedAfter)]
entries.append(f"{label} {path}")
entries.append(f"{label} {os.fsdecode(path)}")
for path in delta.uncleanPaths:
entries.append(f"X {path}")
entries.append(f"X {os.fsdecode(path)}")
if not entries:
continue