From bed7587fe4910f8e4b892a09675279c5a4ab5484 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 25 Oct 2012 19:07:09 -0400 Subject: 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. --- libbe/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- cgit