Mercurial > hgrepos > Python > apps > py-cutils
changeset 295:4a259fb9968e
treesum: Add the treesum version and revision to the full generator output
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 28 Feb 2025 14:11:20 +0100 |
| parents | 2695a76b6630 |
| children | ca293f708cb4 |
| files | cutils/treesum.py |
| diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cutils/treesum.py Tue Feb 25 11:54:53 2025 +0100 +++ b/cutils/treesum.py Fri Feb 28 14:11:20 2025 +0100 @@ -500,9 +500,12 @@ self._writer.write_generator("PY2" if util.PY2 else "PY3") elif self._with_generator == "full": import platform - info = "%s %s, %s" % (platform.python_implementation(), - platform.python_version(), - platform.platform()) + info = ("treesum %s (rv:%s), %s %s, %s" + % (__version__, + __revision__, + platform.python_implementation(), + platform.python_version(), + platform.platform())) self._writer.write_generator(info) else: raise NotImplementedError(
