# HG changeset patch # User Franz Glasner # Date 1741166549 -3600 # Node ID 73d13be531b5692b49ea78a9af019de0d96a7967 # Parent bf88323d6bf7f93c9381baf61d10dfff3df40013 treesum: in the "info" command print a sortes list of errors diff -r bf88323d6bf7 -r 73d13be531b5 cutils/treesum.py --- a/cutils/treesum.py Wed Mar 05 10:07:44 2025 +0100 +++ b/cutils/treesum.py Wed Mar 05 10:22:29 2025 +0100 @@ -1622,7 +1622,16 @@ if algorithm != "SIZE": print(" Digest:", digeststr) print(" Size:", sizestr) - print(" Errors:", errors if errors else "") + if errors: + errorlist = list(errors) + errorlist.sort() + for idx, err in enumerate(errorlist): + if idx == 0: + print(" Errors:", err) + else: + print(" ", err) + else: + print(" Errors: ") if __name__ == "__main__":