Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/treesum.py @ 200:22f92bf3572c
Print the FSENCODING in uppdercase characters always.
So the CRC has a better chance to be identical for different Python versions
if all the other data is identical too.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 17 Jan 2025 20:12:58 +0100 |
| parents | c1e875ba4bdc |
| children | b9b38584919b |
comparison
equal
deleted
inserted
replaced
| 199:b2aba84ca426 | 200:22f92bf3572c |
|---|---|
| 351 """ | 351 """ |
| 352 self._outfp = outfp | 352 self._outfp = outfp |
| 353 self._outfp.resetdigest() | 353 self._outfp.resetdigest() |
| 354 self._outfp.write(format_bsd_line("VERSION", "1", None, False)) | 354 self._outfp.write(format_bsd_line("VERSION", "1", None, False)) |
| 355 self._outfp.write(format_bsd_line( | 355 self._outfp.write(format_bsd_line( |
| 356 "FSENCODING", util.n(walk.getfsencoding()), None, False)) | 356 "FSENCODING", util.n(walk.getfsencoding().upper()), None, False)) |
| 357 self._outfp.flush() | 357 self._outfp.flush() |
| 358 | 358 |
| 359 # | 359 # |
| 360 # Note: Given non-default flags that are relevant for | 360 # Note: Given non-default flags that are relevant for |
| 361 # directory traversal. | 361 # directory traversal. |
