diff options
author | Todd Willey <todd@ansolabs.com> | 2011-01-06 15:20:04 -0500 |
---|---|---|
committer | Todd Willey <todd@ansolabs.com> | 2011-01-06 15:20:04 -0500 |
commit | f3ea4d876fe0d62dcf63cfdcaf7657949cc4dbcf (patch) | |
tree | fff107b983e1f86e477c0656e29845e3fb11693e /nova/version.py | |
parent | 41b5bc26a4ca079414a246191fe8a5ee0284e468 (diff) | |
download | nova-f3ea4d876fe0d62dcf63cfdcaf7657949cc4dbcf.tar.gz nova-f3ea4d876fe0d62dcf63cfdcaf7657949cc4dbcf.tar.xz nova-f3ea4d876fe0d62dcf63cfdcaf7657949cc4dbcf.zip |
Add default version file for developers.
Diffstat (limited to 'nova/version.py')
-rw-r--r-- | nova/version.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nova/version.py b/nova/version.py new file mode 100644 index 000000000..fc14b8401 --- /dev/null +++ b/nova/version.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python +"""This file is automatically generated by generate_version_info +It uses the current working tree to determine the revision. +So don't edit it. :) +""" + +version_info = {'branch_nick': u'LOCALBRANCH', 'revision_id': 'LOCALREVISION', + 'revno': 0} + +revisions = {} + +file_revisions = {} + + +if __name__ == '__main__': + print 'revision: %(revno)d' % version_info + print 'nick: %(branch_nick)s' % version_info + print 'revision id: %(revision_id)s' % version_info + +# below this line automatically generated by setup.py + +YEAR = '2011' +COUNT = '1-dev' + + +def string(): + return '.'.join([YEAR, COUNT]) + + +def vcs_version_string(): + return "%s:%s" % (version_info['branch_nick'], version_info['revision_id']) + + +def string_with_vcs(): + return "%s-%s" % (string(), vcs_version_string()) |