# HG changeset patch # User Franz Glasner # Date 1735848223 -3600 # Node ID cf4fb9a33f946521df218bd847e4c7aeae9df675 # Parent 8b73dca5db97297aa2b1b3e7edf695f37e5b866d Style diff -r 8b73dca5db97 -r cf4fb9a33f94 cutils/treesum.py --- a/cutils/treesum.py Thu Jan 02 20:55:51 2025 +0100 +++ b/cutils/treesum.py Thu Jan 02 21:03:43 2025 +0100 @@ -169,11 +169,12 @@ dir_dgst = algorithm[0]() dir_dgst.update(b"1:S,3:./@,") dir_dgst.update(linkdgst.digest()) - outfp.write(format_bsd_line( - algorithm[1], - dir_dgst.digest(), - "./@", - use_base64)) + outfp.write( + format_bsd_line( + algorithm[1], + dir_dgst.digest(), + "./@", + use_base64)) outfp.flush() return @@ -207,8 +208,9 @@ algorithm[0], fn.path, use_mmap=use_mmap) dir_dgst.update(dgst) opath = "/".join(top) + "/" + fn.name if top else fn.name - outfp.write(format_bsd_line( - algorithm[1], dgst, opath, use_base64)) + outfp.write( + format_bsd_line( + algorithm[1], dgst, opath, use_base64)) outfp.flush() opath = "/".join(top) + "/" if top else "" outfp.write(format_bsd_line(