mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
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:
parent
d42ea29476
commit
444b73b83b
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user