diff cutils/treesum.py @ 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 cc2deeb5f2e6
children bcbc68d8aa12
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(