Mercurial > hgrepos > Python > apps > py-cutils
changeset 326:a464f36fffcb
treesum: Rename the current TreesumWriter to TaggedTreesumWriter.
This is in preparation for a coming TabularTreesumWriter.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 26 Mar 2025 23:06:05 +0100 |
| parents | cd458e318553 |
| children | 8e62738e7469 |
| files | cutils/treesum.py |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cutils/treesum.py Wed Mar 26 22:47:59 2025 +0100 +++ b/cutils/treesum.py Wed Mar 26 23:06:05 2025 +0100 @@ -517,7 +517,7 @@ opts.fnmatch_filters) with out_cm as outfp: - writer = TreesumWriter(outfp) + writer = TaggedTreesumWriter(outfp) for d in opts.directories: V1DirectoryTreesumGenerator( opts.algorithm, opts.mmap, opts.base64, @@ -1309,7 +1309,7 @@ self._outfp.flush() -class TreesumWriter(WriterBase): +class TaggedTreesumWriter(WriterBase): """Writer to write treesum digest files in a format similar to BSD digest files. @@ -1320,7 +1320,7 @@ def __init__(self, outfp, **kwds): # IGNORE **kwds - super(TreesumWriter, self).__init__(outfp) + super(TaggedTreesumWriter, self).__init__(outfp) def start(self, version): """Begin a new block, reset the current CRC and write the VERSION
