From: W. Trevor King Date: Thu, 25 Oct 2012 23:07:09 +0000 (-0400) Subject: version: use abbreviated SHA instead of explicit _VERSION in master branch X-Git-Tag: 1.1.0~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bed7587fe4910f8e4b892a09675279c5a4ab5484;p=be.git version: use abbreviated SHA instead of explicit _VERSION in master branch Only official releases get a version number, which should help avoid confusion. If you're running a live checkout, you shouldn't be scared off by SHAs. --- diff --git a/libbe/version.py b/libbe/version.py index 91818f4..fb629f0 100644 --- a/libbe/version.py +++ b/libbe/version.py @@ -41,7 +41,7 @@ except ImportError, e: } # Manually set a version string (optional, defaults to bzr revision id) -_VERSION = '1.0.0' +#_VERSION = '1.2.3' def version(verbose=False): """ @@ -52,7 +52,7 @@ def version(verbose=False): if "_VERSION" in globals(): string = _VERSION else: - string = version_info['revision'] + string = version_info['revision'][:8] if verbose == True: info = copy.copy(version_info) info['storage'] = libbe.storage.STORAGE_VERSION