log cutils/treesum.py @ 352:b256ae4f4bc8

age author description
Tue, 01 Apr 2025 20:38:06 +0200 Franz Glasner treesum: implement the "filetypes" command to show all the filetype indicators that are used in digest output
Tue, 01 Apr 2025 19:19:07 +0200 Franz Glasner treesum: Print also a help if no command is given
Tue, 01 Apr 2025 19:17:51 +0200 Franz Glasner treesum: preliminary command handling: use always "elif"
Tue, 01 Apr 2025 18:59:32 +0200 Franz Glasner treesum: optimize general help output regarding the "help" subcommand
Tue, 01 Apr 2025 18:56:17 +0200 Franz Glasner treesum: optimize help output: do not print "-h/--help" for "patterns" and "help"
Tue, 01 Apr 2025 18:49:27 +0200 Franz Glasner treesum: Now handle all help related stuff in main()
Tue, 01 Apr 2025 12:45:56 +0200 Franz Glasner Move the computation of the special tag string marker for special files into a property
Mon, 31 Mar 2025 15:24:48 +0200 Franz Glasner treesum: right-align the output of size when using the tabular style
Mon, 31 Mar 2025 14:51:32 +0200 Franz Glasner treesum: allow parsing of files again where sizes are printed with grouping with standard separators out of "., '_"
Mon, 31 Mar 2025 14:39:01 +0200 Franz Glasner treesum: Use the grouping separator (aka thousands separator) when printing sizes
Mon, 31 Mar 2025 14:09:56 +0200 Franz Glasner treesum: when printing an empty size on purpose do not provide an empty octet string but use -1 as size argument
Mon, 31 Mar 2025 13:38:57 +0200 Franz Glasner treesum: .write_file_digest() method: the "size" parameter is now positional and mandatory
Mon, 31 Mar 2025 12:57:39 +0200 Franz Glasner treesum: Also provide the WriterBase with flags when printing sizes
Mon, 31 Mar 2025 09:02:43 +0200 Franz Glasner treesum: prepare for a grouping-separator (aka thousands separator) for sizes.
Sun, 30 Mar 2025 16:20:04 +0200 Franz Glasner treesum: FIX: add missing size param
Fri, 28 Mar 2025 15:29:15 +0100 Franz Glasner treesum: FIX: docs
Fri, 28 Mar 2025 15:23:09 +0100 Franz Glasner treesum: attribute comment for "LS"
Fri, 28 Mar 2025 15:16:12 +0100 Franz Glasner treesum: move the handling of base64 digest output into the writers completely
Fri, 28 Mar 2025 14:20:45 +0100 Franz Glasner treesum: first minimal version of writing the treesum output in tabular format.
Wed, 26 Mar 2025 23:44:30 +0100 Franz Glasner treesum: FIX: typo in parameter name: output_tyle -> output_style
Wed, 26 Mar 2025 23:44:03 +0100 Franz Glasner treesum: parameter validation for "generator"
Wed, 26 Mar 2025 23:42:08 +0100 Franz Glasner treesum: implement option "--output-style".
Wed, 26 Mar 2025 23:06:05 +0100 Franz Glasner treesum: Rename the current TreesumWriter to TaggedTreesumWriter.
Wed, 26 Mar 2025 22:47:59 +0100 Franz Glasner treesum: break up TreesumWriter in TreesumWriter and a new base class WriterBase.
Wed, 26 Mar 2025 18:42:23 +0100 Franz Glasner Adopt copyright and license wordings from https://reuse.software/faq/.
Wed, 26 Mar 2025 13:00:40 +0100 Franz Glasner treesum: Remove CRC32Output completely
Wed, 26 Mar 2025 12:56:19 +0100 Franz Glasner treesum: FIX: CRC32Output is not needed any more: do not wrap anything with it
Mon, 10 Mar 2025 10:25:57 +0100 Franz Glasner treesum: when accepting treesum digest files put a line with its filename into the output
Mon, 10 Mar 2025 10:25:20 +0100 Franz Glasner treesum: FIX: returned tag should be a native string
Mon, 10 Mar 2025 10:19:33 +0100 Franz Glasner treesum: FIX: format string for interpolate_bytes() must be of bytes type
Mon, 10 Mar 2025 10:10:41 +0100 Franz Glasner treesum: assert also in .write_accept_treesum() that the given filename is of bytes type
Mon, 10 Mar 2025 10:04:02 +0100 Franz Glasner treesum: comments
Sat, 08 Mar 2025 04:49:06 +0100 Franz Glasner treesum: Implement --accept-treesum: trust a treesum-file for a directory checksum
Fri, 07 Mar 2025 14:22:22 +0100 Franz Glasner treesum: Build a little static database of digest sizes.
Wed, 05 Mar 2025 14:05:38 +0100 Franz Glasner treesum: use a callback to print parsed .treesum output file infos
Wed, 05 Mar 2025 10:22:29 +0100 Franz Glasner treesum: in the "info" command print a sortes list of errors
Wed, 05 Mar 2025 10:07:44 +0100 Franz Glasner treesum: Implement --exclude/--include.
Wed, 05 Mar 2025 10:06:38 +0100 Franz Glasner treesum: Change debug output: make output when entering a new root directory different from recursing into a sub-directory
Tue, 04 Mar 2025 16:30:10 +0100 Franz Glasner treesum: Implement --include/--exclude commandline parsing for file name inclusion and exclusion.
Tue, 04 Mar 2025 11:26:22 +0100 Franz Glasner treesum: remove not obsolete comment about not following symlinks to files
Fri, 28 Feb 2025 14:11:20 +0100 Franz Glasner treesum: Add the treesum version and revision to the full generator output
Tue, 25 Feb 2025 10:51:02 +0100 Franz Glasner treesum: Indicate that the ISO timestamp is UTC
Mon, 24 Feb 2025 11:50:43 +0100 Franz Glasner treesum: FIX: Output of empty sizes in Python 3: print a realy empty string instead of "b''"
Fri, 21 Feb 2025 17:27:59 +0100 Franz Glasner treesum: FIX: Removal of backslashes in output: do this only where really needed.
Fri, 21 Feb 2025 16:51:03 +0100 Franz Glasner treesum: FIX: Proper error handling.
Thu, 20 Feb 2025 15:30:51 +0100 Franz Glasner treesum: Simplify the path computations and make the visible output more consistent.
Tue, 18 Feb 2025 18:24:16 +0100 Franz Glasner treesum: Implement the --half/-H option: follow symlinks given on the command line but no other symlinks.
Tue, 18 Feb 2025 16:07:28 +0100 Franz Glasner treesum: REFACTOR: Major refactoring of computing digests:
Tue, 18 Feb 2025 13:10:05 +0100 Franz Glasner treesum: also return the algorithm used by directory digests.
Tue, 18 Feb 2025 12:56:49 +0100 Franz Glasner treesum: refactor: remove early return and use an "else" branch instead
Tue, 18 Feb 2025 12:43:31 +0100 Franz Glasner treesum: optimize the use of flush() somewhat
Tue, 18 Feb 2025 12:39:04 +0100 Franz Glasner treesum: Handle errors like broken symlinks properly
Sun, 16 Feb 2025 15:25:37 +0100 Franz Glasner FIX: treesum: bytearray needs not to be handled
Sun, 16 Feb 2025 14:17:10 +0100 Franz Glasner treesum: instead of using format_bsd_line use a real write object with specialized methods
Sun, 16 Feb 2025 11:07:04 +0100 Franz Glasner treesum: Implement the CRC-32 using the new util.crc32 module
Sat, 25 Jan 2025 14:22:34 +0100 Franz Glasner Commentx
Sat, 25 Jan 2025 13:58:33 +0100 Franz Glasner Rename WalkDirEntry.sort_key and WalkDirEntry.alt_sort_key
Sat, 25 Jan 2025 13:50:21 +0100 Franz Glasner "treesum info": print comments only if not empty
Sat, 25 Jan 2025 13:49:12 +0100 Franz Glasner Refactored the printing of FLAGS: print flags always and explicitely print symlink behaviour and encoding configuration
Sat, 25 Jan 2025 09:56:19 +0100 Franz Glasner FIX: Output of symlinks was not converted property but was written in bytes repr
Sat, 25 Jan 2025 09:52:22 +0100 Franz Glasner Handle symlinks to files fully and Implement no-follow-file-symlinks
Fri, 24 Jan 2025 17:10:57 +0100 Franz Glasner Also log filename problems to stderr
Thu, 23 Jan 2025 14:02:44 +0100 Franz Glasner FIX: FLAGS output: wrong "else" for "utf-8-mode" and "print-size"
Thu, 23 Jan 2025 09:16:51 +0100 Franz Glasner Refactor option handling for configuring symlink handling: now all variations are supported
Wed, 22 Jan 2025 18:58:52 +0100 Franz Glasner Print the filesystem encoding and the generator in the "info" output also
Wed, 22 Jan 2025 18:57:44 +0100 Franz Glasner FIX: For Python2.7 correct the CRC only if is < 0
Wed, 22 Jan 2025 17:55:49 +0100 Franz Glasner FIX: CRC-32 validation on Python2.7: normalize to positive numbers
Wed, 22 Jan 2025 17:45:37 +0100 Franz Glasner Add a "GENERATOR" line with control flats to treesum.py
Tue, 21 Jan 2025 20:31:48 +0100 Franz Glasner Fully implemented UTF-8 mode for treeview.
Tue, 21 Jan 2025 14:51:58 +0100 Franz Glasner First preparations to implement an UTF-8-mode for treeview
Fri, 17 Jan 2025 20:12:58 +0100 Franz Glasner Print the FSENCODING in uppdercase characters always.
Thu, 16 Jan 2025 23:18:04 +0100 Franz Glasner Put the effective filesystem encoding into the treesum digest file using FSENCODING = <encoding>
Thu, 16 Jan 2025 20:40:24 +0100 Franz Glasner Return the CRC-32 digest on Python2 as unsigned int instead of a signed one.
Thu, 16 Jan 2025 19:04:33 +0100 Franz Glasner Change: path indicators for symlinks: ./@ -> ./@/ and /./@ -> /./@/
Thu, 16 Jan 2025 11:31:37 +0100 Franz Glasner Make "--debug" a global argument in treeview
Thu, 16 Jan 2025 11:29:36 +0100 Franz Glasner First implementation of "treeview info" to print some information from the treeview digest files
Wed, 15 Jan 2025 15:40:46 +0100 Franz Glasner Extend the max line length to read to 4096, which is something along PATH_MAX onn Linux
Wed, 15 Jan 2025 14:41:36 +0100 Franz Glasner Implement basic parsing of treesum output.
Sat, 11 Jan 2025 22:26:00 +0100 Franz Glasner Also write a (standard) CRC-32 checksum for each block of output
Sat, 11 Jan 2025 21:18:53 +0100 Franz Glasner Cleanup: remove non used walk-code
Sat, 11 Jan 2025 17:41:28 +0100 Franz Glasner Add an alternate implementation for generating directory tree digests:
Sat, 11 Jan 2025 13:20:14 +0100 Franz Glasner Implement preconditions for some debug logging
Fri, 10 Jan 2025 15:34:50 +0100 Franz Glasner Use "return 0" instead of "sys.exit(0)" when printing version and help#
Fri, 10 Jan 2025 12:46:44 +0100 Franz Glasner treesum.py now runs on Python3.4 also: use a workaround for its missing byte % formatting.
Fri, 10 Jan 2025 11:38:31 +0100 Franz Glasner Now the selection of the default algorithm depends on availiability in hashlib
Fri, 10 Jan 2025 10:32:52 +0100 Franz Glasner Mode for treesum.py to print only the size of files and the accumulated size of a directory: --size-only.
Thu, 09 Jan 2025 18:11:38 +0100 Franz Glasner Sort flags in the output
Thu, 09 Jan 2025 18:02:46 +0100 Franz Glasner Implement "--print-size" to print file and accumulated directory sizes also.
Tue, 07 Jan 2025 19:20:32 +0100 Franz Glasner In directory digests: include the octet-length of the checksums also
Tue, 07 Jan 2025 12:55:55 +0100 Franz Glasner Remove debug output
Tue, 07 Jan 2025 12:55:45 +0100 Franz Glasner FIX: Add --mode and --full-mode to the "FLAGS" output
Tue, 07 Jan 2025 12:48:37 +0100 Franz Glasner Implement "--full-mode" for "treesum.py"
Mon, 06 Jan 2025 21:03:10 +0100 Franz Glasner Implement "--mode" flag for "treesum.py" to consider file portable mode bits
Mon, 06 Jan 2025 14:38:07 +0100 Franz Glasner Calculate "stat()" for directories also in a WalkDirEntry
Mon, 06 Jan 2025 13:39:12 +0100 Franz Glasner When computing digests use the order imposed by names alone.
Sat, 04 Jan 2025 15:41:00 +0100 Franz Glasner Comment
Sat, 04 Jan 2025 15:31:39 +0100 Franz Glasner Truncate the timestamp in the output to seconds
Fri, 03 Jan 2025 23:33:37 +0100 Franz Glasner Implement "--mtime" for treesum to include a file's mtime in a directory digest.
Fri, 03 Jan 2025 23:08:02 +0100 Franz Glasner Implement "--minimal [TAG]" for treesum.
Fri, 03 Jan 2025 17:16:05 +0100 Franz Glasner Put the defaults generation when generating directory digests into "generate_treesum()" instead of "main()"
Fri, 03 Jan 2025 17:04:29 +0100 Franz Glasner Optimize help / usage output for the global options.
Fri, 03 Jan 2025 16:51:26 +0100 Franz Glasner Add also a "help" subcommand to "treesum".
Fri, 03 Jan 2025 16:32:40 +0100 Franz Glasner Optimize argument parsing for the "version" command
Fri, 03 Jan 2025 16:22:59 +0100 Franz Glasner Optimize help output for subcommands
Fri, 03 Jan 2025 16:05:38 +0100 Franz Glasner Make a "version" subcommand to also print the program's version number for "treesum"
Fri, 03 Jan 2025 16:05:11 +0100 Franz Glasner Wording
Fri, 03 Jan 2025 15:49:57 +0100 Franz Glasner Prepare for using subcommands in "treesum.py".
Thu, 02 Jan 2025 23:40:05 +0100 Franz Glasner Change the tag for symlinks given on the command line: no "filename" here
Thu, 02 Jan 2025 23:15:55 +0100 Franz Glasner "-l" is now the sort form of "--follow-directory-symlinks"
Thu, 02 Jan 2025 23:15:10 +0100 Franz Glasner Allow to put comments into the output with "--comment"
Thu, 02 Jan 2025 23:03:20 +0100 Franz Glasner Put a file version number into the output.
Thu, 02 Jan 2025 21:03:43 +0100 Franz Glasner Style
Thu, 02 Jan 2025 20:55:51 +0100 Franz Glasner Encode the link targets as netstrings also before digesting them
Thu, 02 Jan 2025 20:52:49 +0100 Franz Glasner Implement --follow-directory-symlinks when walking a directory tree
Thu, 02 Jan 2025 19:50:24 +0100 Franz Glasner Change again the filename tags to be used for symlinks
Thu, 02 Jan 2025 18:36:40 +0100 Franz Glasner Output FLAGS as line "FLAGS = ..." instead of "FLAGS (...)"
Thu, 02 Jan 2025 18:23:10 +0100 Franz Glasner Add TIMESTAMP and ISOTIMESTAMP to the output
Thu, 02 Jan 2025 17:46:50 +0100 Franz Glasner Change the filename output: make it more consistent
Thu, 02 Jan 2025 17:03:10 +0100 Franz Glasner Implement "--logical" and "--physical" to control following symlinked directories when given on the commandline
Thu, 02 Jan 2025 13:29:20 +0100 Franz Glasner A first version of "treesum" is working