minor improvements to eden debug journal output

Summary:
Indent all of the file entries by two spaces.  Also avoid printing a blank
line when no file entries are reported (which normally occurs when the delta
only changed the commit ID and no other matching file paths).

Reviewed By: chadaustin

Differential Revision: D13627558

fbshipit-source-id: 333f5f48ded84dfaca5dce3165c033d0c1448ccb
This commit is contained in:
Adam Simpkins 2019-01-10 19:46:21 -08:00 committed by Facebook Github Bot
parent d42ea29476
commit 444b73b83b

View File

@ -944,8 +944,9 @@ def _print_journal_entry(delta: DebugJournalDelta, entries: List[str]) -> None:
else:
print(f"DELTA {delta.fromPosition.sequenceNumber} {commit_ids}")
entries.sort()
print("\n".join(entries))
if entries:
entries.sort()
print(" " + "\n ".join(entries))
@debug_cmd("thrift", "Invoke a thrift function")