Mercurial > hgrepos > Python > apps > py-cutils
changeset 193:fb36e71f6ba8
Change: path indicators for symlinks: ./@ -> ./@/ and /./@ -> /./@/
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 16 Jan 2025 19:04:33 +0100 |
| parents | 188de62caac6 |
| children | 938488f87b62 |
| files | cutils/treesum.py |
| diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/cutils/treesum.py Thu Jan 16 12:19:02 2025 +0100 +++ b/cutils/treesum.py Thu Jan 16 19:04:33 2025 +0100 @@ -413,7 +413,7 @@ format_bsd_line( "SIZE", None, - "./@", + "./@/", False, 0)) else: @@ -421,7 +421,7 @@ format_bsd_line( self._algorithm[1], dir_dgst.digest(), - "./@", + "./@/", self._use_base64)) self._outfp.flush() self._outfp.write(format_bsd_line( @@ -460,12 +460,12 @@ opath = "/".join(top) + "/" + fso.name if top else fso.name if self._size_only: self._outfp.write(format_bsd_line( - "SIZE", None, "%s/./@" % (opath,), False, 0)) + "SIZE", None, "%s/./@/" % (opath,), False, 0)) else: self._outfp.write(format_bsd_line( self._algorithm[1], linkdgst.digest(), - "%s/./@" % (opath,), + "%s/./@/" % (opath,), self._use_base64)) self._outfp.flush() else: @@ -641,7 +641,7 @@ value = base64.b64encode(value) else: value = binascii.hexlify(value) - if filename != b"./@": + if filename != b"./@/": filename = util.normalize_filename(filename, True) if size is None: return util.interpolate_bytes( @@ -885,7 +885,7 @@ if not in_block: continue # digest line or size line - if not record[1] or record[1] == b"./@": + if not record[1] or record[1] == b"./@/": if record[0] == "SIZE": algorithm = "SIZE" digest = None
