# HG changeset patch # User Franz Glasner # Date 1735843824 -3600 # Node ID d5621028ce39c6dfa76c739d967117093297d94c # Parent bdd8ea43074b82f5a716127c1e963fa97f20e487 Change again the filename tags to be used for symlinks diff -r bdd8ea43074b -r d5621028ce39 cutils/treesum.py --- a/cutils/treesum.py Thu Jan 02 18:36:40 2025 +0100 +++ b/cutils/treesum.py Thu Jan 02 19:50:24 2025 +0100 @@ -153,12 +153,12 @@ linkdgst = algorithm[0]() linkdgst.update(linktgt) dir_dgst = algorithm[0]() - dir_dgst.update(b"1:S,4:/./@,") + 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.flush() return @@ -223,7 +223,7 @@ value = base64.b64encode(value) else: value = binascii.hexlify(value) - if filename != b"/./@": + if filename != b"./@": filename = util.normalize_filename(filename, True) return b"%s (%s) = %s%s" % (digestname, filename, value, ls)