# HG changeset patch # User Franz Glasner # Date 1737809421 -3600 # Node ID 8db78850d800d18f9dcec97c33b3fb8cc6456ab7 # Parent 19eaba51c632e390806cb7894c78eda3f105a422 "treesum info": print comments only if not empty diff -r 19eaba51c632 -r 8db78850d800 cutils/treesum.py --- a/cutils/treesum.py Sat Jan 25 13:49:12 2025 +0100 +++ b/cutils/treesum.py Sat Jan 25 13:50:21 2025 +0100 @@ -1318,7 +1318,8 @@ if generator: print(" Generator:", generator) print(" Flags:", flags if flags else "") - print(" Comments:", comments if comments else "") + if comments: + print(" Comments:", comments) print(" Algorithm:", algorithm) if algorithm != "SIZE": print(" Digest:", digeststr)