From 5d9cbf44a0f1252c2e656093c1c94425d21f7410 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Wed, 13 Jun 2012 11:28:53 +0200 Subject: [PATCH] Support revisions in version numbers Introduce REVISION in versioning scheme, in order to support future stable versioning (2012.2.x). Change-Id: I3015cfbf3938c4994bbda8d63fdbd346b7535a6b --- horizon/version.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/horizon/version.py b/horizon/version.py index 020343b0d..aecdca99c 100644 --- a/horizon/version.py +++ b/horizon/version.py @@ -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():