Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/treesum.py @ 137:69f8a3db8fbd
Change the tag for symlinks given on the command line: no "filename" here
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 02 Jan 2025 23:40:05 +0100 |
| parents | db4fd1f64538 |
| children | 71747e45b52c |
comparison
equal
deleted
inserted
replaced
| 136:db4fd1f64538 | 137:69f8a3db8fbd |
|---|---|
| 180 if not handle_root_logical and os.path.islink(root): | 180 if not handle_root_logical and os.path.islink(root): |
| 181 linktgt = util.fsencode(os.readlink(root)) | 181 linktgt = util.fsencode(os.readlink(root)) |
| 182 linkdgst = algorithm[0]() | 182 linkdgst = algorithm[0]() |
| 183 linkdgst.update(b"%d:%s," % (len(linktgt), linktgt)) | 183 linkdgst.update(b"%d:%s," % (len(linktgt), linktgt)) |
| 184 dir_dgst = algorithm[0]() | 184 dir_dgst = algorithm[0]() |
| 185 dir_dgst.update(b"1:S,3:./@,") | 185 dir_dgst.update(b"1:L,") |
| 186 dir_dgst.update(linkdgst.digest()) | 186 dir_dgst.update(linkdgst.digest()) |
| 187 outfp.write( | 187 outfp.write( |
| 188 format_bsd_line( | 188 format_bsd_line( |
| 189 algorithm[1], | 189 algorithm[1], |
| 190 dir_dgst.digest(), | 190 dir_dgst.digest(), |
