Support revisions in version numbers

Introduce REVISION in versioning scheme, in order to support future
stable versioning (2012.2.x).

Change-Id: I3015cfbf3938c4994bbda8d63fdbd346b7535a6b
This commit is contained in:
Thierry Carrez 2012-06-13 11:28:53 +02:00
parent 7b565fc983
commit 5d9cbf44a0

View File

@ -19,13 +19,13 @@ version_info = {'branch_nick': u'LOCALBRANCH',
'revno': 0}
HORIZON_VERSION = ['2012', '2']
YEAR, COUNT = HORIZON_VERSION
HORIZON_VERSION = ['2012', '2', None]
YEAR, COUNT, REVISION = HORIZON_VERSION
FINAL = False # This becomes true at Release Candidate time
def canonical_version_string():
return '.'.join([YEAR, COUNT])
return '.'.join(filter(None, HORIZON_VERSION))
def version_string():