Mercurial > hgrepos > Python > apps > py-cutils
changeset 218:dee891ed2307
FIX: Output of symlinks was not converted property but was written in bytes repr
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 25 Jan 2025 09:56:19 +0100 |
| parents | 8e38c07c4b85 |
| children | 19eaba51c632 |
| files | cutils/treesum.py |
| diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/cutils/treesum.py Sat Jan 25 09:52:22 2025 +0100 +++ b/cutils/treesum.py Sat Jan 25 09:56:19 2025 +0100 @@ -666,12 +666,14 @@ opath = walk.WalkDirEntry.alt_fs(opath) if self._size_only: self._outfp.write(format_bsd_line( - "SIZE", None, "%s/./@/" % (opath,), False, 0)) + "SIZE", None, + util.interpolate_bytes(b"%s/./@/", opath), + False, 0)) else: self._outfp.write(format_bsd_line( self._algorithm[1], linkdgst.digest(), - "%s/./@/" % (opath,), + util.interpolate_bytes(b"%s/./@/", opath), self._use_base64)) self._outfp.flush() else: @@ -777,12 +779,14 @@ opath = walk.WalkDirEntry.alt_fs(opath) if self._size_only: self._outfp.write(format_bsd_line( - "SIZE", None, "%s/./@" % (opath,), False, 0)) + "SIZE", None, + util.interpolate_bytes(b"%s/./@", opath), + False, 0)) else: self._outfp.write(format_bsd_line( self._algorithm[1], linkdgst.digest(), - "%s/./@" % (opath,), + util.interpolate_bytes(b"%s/./@", opath), self._use_base64)) self._outfp.flush() else:
