Mercurial > hgrepos > Python > apps > py-cutils
annotate cutils/__init__.py @ 177:089c40240061
Add an alternate implementation for generating directory tree digests:
- Do not use something like os.walk() but use os.scandir() directly.
- Recursively generate the subdirectory digests only when needed and in
the right order.
This fixes that the order of subdirectories in the output did not
match the application order of its directory digests.
The new implementation also should make filtering (that will be
implemented later) easier.
NOTE: The tree digests of the old and the new implementation are identical.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 11 Jan 2025 17:41:28 +0100 |
| parents | dfe7bb0579e2 |
| children | 798c79420f65 |
| rev | line source |
|---|---|
|
114
9e61c5cf76a2
coding declaration for the cutils package (__init__.py)
Franz Glasner <fzglas.hg@dom66.de>
parents:
107
diff
changeset
|
1 # -*- coding: utf-8 -*- |
|
30
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 r""" |
|
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 :Author: Franz Glasner |
|
126
dfe7bb0579e2
Extend copyright years to 2025
Franz Glasner <fzglas.hg@dom66.de>
parents:
114
diff
changeset
|
4 :Copyright: (c) 2020-2025 Franz Glasner |
|
30
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 :License: BSD 3-Clause "New" or "Revised" License. |
|
73
c3268f4e752f
Adjust all license notes to (a) more literally comply with the BSD3 templates and to the style guide
Franz Glasner <fzglas.hg@dom66.de>
parents:
72
diff
changeset
|
6 See :ref:`LICENSE.txt <license>` for details. |
|
c3268f4e752f
Adjust all license notes to (a) more literally comply with the BSD3 templates and to the style guide
Franz Glasner <fzglas.hg@dom66.de>
parents:
72
diff
changeset
|
7 If you cannot find LICENSE.txt see |
|
30
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 <https://opensource.org/licenses/BSD-3-Clause> |
|
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 :ID: @(#) $HGid$ |
|
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
10 |
|
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 """ |
|
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 |
| 107 | 13 __version__ = "0.4.4" |
|
30
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 |
|
72
ae2df602beb4
Make shasum.py and dos2unix sub-modules to the new "cutils" package
Franz Glasner <fzglas.hg@dom66.de>
parents:
62
diff
changeset
|
15 __revision__ = "|VCSRevision|" |
|
ae2df602beb4
Make shasum.py and dos2unix sub-modules to the new "cutils" package
Franz Glasner <fzglas.hg@dom66.de>
parents:
62
diff
changeset
|
16 __date__ = "|VCSJustDate|" |
|
ae2df602beb4
Make shasum.py and dos2unix sub-modules to the new "cutils" package
Franz Glasner <fzglas.hg@dom66.de>
parents:
62
diff
changeset
|
17 |
|
30
ffcce6062bee
Put the version number info the optinal common module _cutils.py
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
18 __all__ = ["__version__"] |
