comparison 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
comparison
equal deleted inserted replaced
219:19eaba51c632 220:8db78850d800
1316 print(" Tag:", tag) 1316 print(" Tag:", tag)
1317 print(" FS-Encoding:", fsencoding) 1317 print(" FS-Encoding:", fsencoding)
1318 if generator: 1318 if generator:
1319 print(" Generator:", generator) 1319 print(" Generator:", generator)
1320 print(" Flags:", flags if flags else "<none>") 1320 print(" Flags:", flags if flags else "<none>")
1321 print(" Comments:", comments if comments else "") 1321 if comments:
1322 print(" Comments:", comments)
1322 print(" Algorithm:", algorithm) 1323 print(" Algorithm:", algorithm)
1323 if algorithm != "SIZE": 1324 if algorithm != "SIZE":
1324 print(" Digest:", digeststr) 1325 print(" Digest:", digeststr)
1325 print(" Size:", sizestr) 1326 print(" Size:", sizestr)
1326 print(" Errors:", errors if errors else "<none>") 1327 print(" Errors:", errors if errors else "<none>")