# HG changeset patch # User Franz Glasner # Date 1607305950 -3600 # Node ID c29bd96dcd4f05dd64275db21e28c61af0eaf829 # Parent ea4bb192c4375a81f8ae890d58133c259ade80b6 Put the HG revision into the version output also diff -r ea4bb192c437 -r c29bd96dcd4f shasum.py --- a/shasum.py Mon Dec 07 02:47:35 2020 +0100 +++ b/shasum.py Mon Dec 07 02:52:30 2020 +0100 @@ -15,6 +15,9 @@ __version__ = "0.1" +__revision__ = "|VCSRevision|" +__date__ = "|VCSJustDate|" + import argparse import hashlib @@ -73,7 +76,7 @@ "--text", "-t", action="store_true", dest="text_mode", default=False, help="read in text mode (not supported)") aparser.add_argument( - "--version", "-v", action="version", version=__version__) + "--version", "-v", action="version", version="%s (rv:%s)" % (__version__, __revision__)) aparser.add_argument( "files", nargs="*", metavar="FILE")