~nchohan/appscale/zk3.3.4

« back to all changes in this revision

Viewing changes to AppServer/google/appengine/_internal/django/__init__.py

  • Committer: Chris Bunch
  • Date: 2012-02-17 08:19:21 UTC
  • mfrom: (787.2.3 appscale-raj-merge)
  • Revision ID: cgb@cs.ucsb.edu-20120217081921-pakidyksaenlpzur
merged with main branch, gaining rabbitmq and upgrades for hbase, cassandra, and hypertable, as well as upgrading to gae 1.6.1 for python and go

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
VERSION = (1, 2, 5, 'final', 0)
 
2
 
 
3
def get_version():
 
4
    version = '%s.%s' % (VERSION[0], VERSION[1])
 
5
    if VERSION[2]:
 
6
        version = '%s.%s' % (version, VERSION[2])
 
7
    if VERSION[3:] == ('alpha', 0):
 
8
        version = '%s pre-alpha' % version
 
9
    else:
 
10
        if VERSION[3] != 'final':
 
11
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
 
12
    from google.appengine._internal.django.utils.version import get_svn_revision
 
13
    svn_rev = get_svn_revision()
 
14
    if svn_rev != u'SVN-unknown':
 
15
        version = "%s %s" % (version, svn_rev)
 
16
    return version