diff 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
line wrap: on
line diff
--- a/cutils/treesum.py	Sat May 17 15:14:30 2025 +0200
+++ b/cutils/treesum.py	Sat May 17 16:53:16 2025 +0200
@@ -490,7 +490,7 @@
             if not isinstance(f, (tuple, list)):
                 raise TypeError(
                     "items in `fnmatch_filters' must be tuples or lists")
-            if f[0] not in ("exclude", "include"):
+            if f[0] not in ("exclude", "include", "accept-treesum"):
                 raise ValueError(
                     "every kind of every item in `fnmatch_filters' must be"
                     " \"include\", \"exclude\" or \"accept-treesum\""