aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/version.py')
-rw-r--r--libbe/version.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/libbe/version.py b/libbe/version.py
index f8eebbd..ddff5a5 100644
--- a/libbe/version.py
+++ b/libbe/version.py
@@ -23,7 +23,10 @@ be bothered setting version strings" and the "I want complete control
over the version strings" workflows.
"""
+import copy
+
import libbe._version as _version
+import libbe.storage
# Manually set a version string (optional, defaults to bzr revision id)
#_VERSION = "1.2.3"
@@ -39,11 +42,14 @@ def version(verbose=False):
else:
string = _version.version_info["revision_id"]
if verbose == True:
+ info = copy.copy(_version.version_info)
+ info['storage'] = libbe.storage.STORAGE_VERSION
string += ("\n"
"revision: %(revno)d\n"
"nick: %(branch_nick)s\n"
- "revision id: %(revision_id)s"
- % _version.version_info)
+ "revision id: %(revision_id)s\n"
+ "storage version: %(storage)s"
+ % info)
return string
if __name__ == "__main__":