Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/treesum.py @ 160:432fe71300d3
Remove debug output
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 07 Jan 2025 12:55:55 +0100 |
| parents | 5c23ad9a3f8f |
| children | df927ada9a37 |
comparison
equal
deleted
inserted
replaced
| 159:5c23ad9a3f8f | 160:432fe71300d3 |
|---|---|
| 334 for top, fsobjects in walk.walk( | 334 for top, fsobjects in walk.walk( |
| 335 root, | 335 root, |
| 336 follow_symlinks=follow_directory_symlinks): | 336 follow_symlinks=follow_directory_symlinks): |
| 337 dir_dgst = algorithm[0]() | 337 dir_dgst = algorithm[0]() |
| 338 for fso in fsobjects: | 338 for fso in fsobjects: |
| 339 print("NNNNNNNN", fso.name, fso.stat, | |
| 340 "%o (%o)" | |
| 341 % (fso.stat.st_mode, stat.S_IMODE(fso.stat.st_mode))) | |
| 342 if fso.is_dir: | 339 if fso.is_dir: |
| 343 if fso.is_symlink and not follow_directory_symlinks: | 340 if fso.is_symlink and not follow_directory_symlinks: |
| 344 linktgt = util.fsencode(os.readlink(fso.path)) | 341 linktgt = util.fsencode(os.readlink(fso.path)) |
| 345 linkdgst = algorithm[0]() | 342 linkdgst = algorithm[0]() |
| 346 linkdgst.update(b"%d:%s," % (len(linktgt), linktgt)) | 343 linkdgst.update(b"%d:%s," % (len(linktgt), linktgt)) |
