Mercurial > hgrepos > Python > apps > py-cutils
changeset 130:d5621028ce39
Change again the filename tags to be used for symlinks
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 02 Jan 2025 19:50:24 +0100 |
| parents | bdd8ea43074b |
| children | 3a18d71d7c50 |
| files | cutils/treesum.py |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)
