Mercurial > hgrepos > Python > apps > py-cutils
annotate docs/notes.rst @ 219:19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 25 Jan 2025 13:49:12 +0100 |
| parents | 7cf9df49d0ba |
| children | d7be68a8937d |
| rev | line source |
|---|---|
| 212 | 1 .. -*- coding: utf-8; indent-tabs-mode: nil; -*- |
|
194
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
4 In a aggregated directory checksum at the end of a block: |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 A path equals |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
6 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
7 ``./@/`` |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 Symlink to directory |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
10 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 ``./@`` |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 Symlink to other filesystem object |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 Other paths that *end* with: |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
17 ``/./@/`` |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
18 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
19 Symlink to a directory |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
20 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
21 ``/./@` |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
22 |
|
938488f87b62
Begin a file with some notes on treesum.py and its digest file format
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
23 Symlink to other filesystem object |
|
198
c1e875ba4bdc
Put the effective filesystem encoding into the treesum digest file using FSENCODING = <encoding>
Franz Glasner <fzglas.hg@dom66.de>
parents:
194
diff
changeset
|
24 |
|
c1e875ba4bdc
Put the effective filesystem encoding into the treesum digest file using FSENCODING = <encoding>
Franz Glasner <fzglas.hg@dom66.de>
parents:
194
diff
changeset
|
25 |
|
c1e875ba4bdc
Put the effective filesystem encoding into the treesum digest file using FSENCODING = <encoding>
Franz Glasner <fzglas.hg@dom66.de>
parents:
194
diff
changeset
|
26 Fields: |
|
c1e875ba4bdc
Put the effective filesystem encoding into the treesum digest file using FSENCODING = <encoding>
Franz Glasner <fzglas.hg@dom66.de>
parents:
194
diff
changeset
|
27 |
|
c1e875ba4bdc
Put the effective filesystem encoding into the treesum digest file using FSENCODING = <encoding>
Franz Glasner <fzglas.hg@dom66.de>
parents:
194
diff
changeset
|
28 ``FSENCODING`` |
|
c1e875ba4bdc
Put the effective filesystem encoding into the treesum digest file using FSENCODING = <encoding>
Franz Glasner <fzglas.hg@dom66.de>
parents:
194
diff
changeset
|
29 |
|
c1e875ba4bdc
Put the effective filesystem encoding into the treesum digest file using FSENCODING = <encoding>
Franz Glasner <fzglas.hg@dom66.de>
parents:
194
diff
changeset
|
30 The result of :func:`os.getfilesystemencoding` that is in effect when |
|
219
19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Franz Glasner <fzglas.hg@dom66.de>
parents:
212
diff
changeset
|
31 generating treesum digests (process environment) |
|
204
07f1d79e6674
Fully implemented UTF-8 mode for treeview.
Franz Glasner <fzglas.hg@dom66.de>
parents:
198
diff
changeset
|
32 |
|
07f1d79e6674
Fully implemented UTF-8 mode for treeview.
Franz Glasner <fzglas.hg@dom66.de>
parents:
198
diff
changeset
|
33 ``ERROR`` |
|
07f1d79e6674
Fully implemented UTF-8 mode for treeview.
Franz Glasner <fzglas.hg@dom66.de>
parents:
198
diff
changeset
|
34 |
|
07f1d79e6674
Fully implemented UTF-8 mode for treeview.
Franz Glasner <fzglas.hg@dom66.de>
parents:
198
diff
changeset
|
35 Errors are reported: |
|
07f1d79e6674
Fully implemented UTF-8 mode for treeview.
Franz Glasner <fzglas.hg@dom66.de>
parents:
198
diff
changeset
|
36 |
|
07f1d79e6674
Fully implemented UTF-8 mode for treeview.
Franz Glasner <fzglas.hg@dom66.de>
parents:
198
diff
changeset
|
37 - For directories if the one of filenames has a filename problem |
|
209
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
38 |
| 212 | 39 ``FLAGS`` |
| 40 | |
|
219
19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Franz Glasner <fzglas.hg@dom66.de>
parents:
212
diff
changeset
|
41 Some flags are always printed. |
| 212 | 42 |
|
219
19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Franz Glasner <fzglas.hg@dom66.de>
parents:
212
diff
changeset
|
43 - no file modes and no file mtime is taken into account for digesting |
| 212 | 44 - no file size is printed |
| 45 | |
| 46 Contains: | |
| 47 | |
| 48 - ``with-metadata-fullmode``: if a file mode is used completely as | |
| 49 given by the OS for digest computation | |
| 50 - ``with-metadata-mode``: if just the "portable" file modes are used | |
| 51 for digest computation | |
| 52 - ``with-metadata-mtime``: if the mtime as ISO-String and truncated to | |
| 53 seconds is used in digest computation | |
|
219
19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Franz Glasner <fzglas.hg@dom66.de>
parents:
212
diff
changeset
|
54 - ``print-size``: if the filesize is to to be printed also -- does not |
|
19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Franz Glasner <fzglas.hg@dom66.de>
parents:
212
diff
changeset
|
55 change digests |
|
19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Franz Glasner <fzglas.hg@dom66.de>
parents:
212
diff
changeset
|
56 - ``fs-encoding``: the filenames are given in FS encoding |
|
19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Franz Glasner <fzglas.hg@dom66.de>
parents:
212
diff
changeset
|
57 - ``utf8-encoding``: the filenames are given in UTF-8 encoding |
|
19eaba51c632
Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Franz Glasner <fzglas.hg@dom66.de>
parents:
212
diff
changeset
|
58 - ``follow-symlinks-XXX`` and ``no-follow-symlinkx-XXX``: if symlinks are followed on the command |
| 212 | 59 line, while directory walking or for files |
| 60 - ``size-only``: if no digest is to be computed and only a file's size | |
| 61 is printed and the accumulated file sizes for a directory tree | |
|
209
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
62 |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
63 |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
64 Offene Fragen |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
65 ============= |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
66 |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
67 VFAT und Encoding |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
68 ----------------- |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
69 |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
70 Verfolgung von Encoding-Einstellungen über Mount-Punkte hinweg -- gerade |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
71 für externe Medien mit VFAT/MSDOS-FS. |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
72 |
|
efbf99bd0910
VFAT-Encoding-Problem notiert
Franz Glasner <fzglas.hg@dom66.de>
parents:
204
diff
changeset
|
73 Erst einmal zurückgestellt |
