Changeset 166

Show
Ignore:
Timestamp:
01/31/07 08:14:12 (6 years ago)
Author:
mk
Message:

Include revision number in --version.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cheesecake/cheesecake_index.py

    r159 r166  
    3434from codeparser import CodeParser 
    3535from __init__ import __version__ as VERSION 
     36from __init__ import __revision__ as REVISION 
    3637import pep8  
    3738 
     
    10491050 
    10501051    def compute(self, files_list, package_dir): 
    1051        # See if pylint script location is set via environment variable 
     1052        # See if pylint script location is set via environment variable 
    10521053        pylint_location = os.environ.get("PYLINT", "pylint") 
    10531054 
     
    17881789 
    17891790    if version: 
    1790         print "cheesecake version %s" % VERSION 
     1791        print "Cheesecake version %s (rev. %s)" % (VERSION, REVISION) 
    17911792        sys.exit(0) 
    17921793