Display correct version

`rally --version` displays correct version only on releases.
For release X+N patch, `rally --version` prints X+1 version, which is wrong(
since there is no X+1 release).

This patch changes displayed version to debian format:
 - <release_number> for releases
 - <last_release+1>~dev<number_of_patches_from_last_release> for development
   branch.

Change-Id: I53b1da26096172c0d7ccd275c9b3aff334bf569c
This commit is contained in:
Andrey Kurilin 2015-11-06 15:29:35 +02:00
parent d0a052da26
commit b0facc94df

View File

@ -24,4 +24,4 @@ version_info = pbr_version.VersionInfo("rally")
def version_string():
return version_info.version_string()
return version_info.semantic_version().debian_string()