Mercurial > hgrepos > Python > apps > py-cutils
diff cutils/treesum.py @ 220:8db78850d800
"treesum info": print comments only if not empty
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 25 Jan 2025 13:50:21 +0100 |
| parents | 19eaba51c632 |
| children | ca9d5a0dc9bb |
line wrap: on
line diff
--- 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 "<none>") - print(" Comments:", comments if comments else "") + if comments: + print(" Comments:", comments) print(" Algorithm:", algorithm) if algorithm != "SIZE": print(" Digest:", digeststr)
