comparison cutils/treesum.py @ 385:ea73723be05e

treesum: unit tests with an existing .treesum file: - ignore them - FIX: checksums where existing .treesum files were not ignored properly - accept them with (implicitly) changing the algorithm
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 17 May 2025 16:53:16 +0200
parents dd0bc31064e4
children f045d46e9f3d
comparison
equal deleted inserted replaced
384:f66afecac253 385:ea73723be05e
488 if fnmatch_filters: 488 if fnmatch_filters:
489 for f in fnmatch_filters: 489 for f in fnmatch_filters:
490 if not isinstance(f, (tuple, list)): 490 if not isinstance(f, (tuple, list)):
491 raise TypeError( 491 raise TypeError(
492 "items in `fnmatch_filters' must be tuples or lists") 492 "items in `fnmatch_filters' must be tuples or lists")
493 if f[0] not in ("exclude", "include"): 493 if f[0] not in ("exclude", "include", "accept-treesum"):
494 raise ValueError( 494 raise ValueError(
495 "every kind of every item in `fnmatch_filters' must be" 495 "every kind of every item in `fnmatch_filters' must be"
496 " \"include\", \"exclude\" or \"accept-treesum\"" 496 " \"include\", \"exclude\" or \"accept-treesum\""
497 ) 497 )
498 if generator not in ("normal", "full", "none"): 498 if generator not in ("normal", "full", "none"):