Show More
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | """ |
|
3 |
|
|
|
4 | ~~~~~~~~~~~~~~ | |
|
3 | rhodecode.__init__ | |
|
4 | ~~~~~~~~~~~~~~~~~~ | |
|
5 | 5 | |
|
6 | 6 | RhodeCode, a web based repository management based on pylons |
|
7 | 7 | versioning implementation: http://semver.org/ |
@@ -30,16 +30,15 b'' | |||
|
30 | 30 | VERSION = (1, 1, 0, 'beta') |
|
31 | 31 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
32 | 32 | |
|
33 | ||
|
34 | 33 | from rhodecode.lib.utils import get_current_revision |
|
35 | 34 | _rev = get_current_revision() |
|
36 | if 'beta' in VERSION and _rev: | |
|
35 | ||
|
36 | if len(VERSION) > 3 and _rev: | |
|
37 | 37 | __version__ += ' [rev:%s]' % _rev[0] |
|
38 | 38 | |
|
39 | 39 | def get_version(): |
|
40 | """ | |
|
41 | Returns shorter version (digit parts only) as string. | |
|
42 | """ | |
|
40 | """Returns shorter version (digit parts only) as string.""" | |
|
41 | ||
|
43 | 42 | return '.'.join((str(each) for each in VERSION[:3])) |
|
44 | 43 | |
|
45 | 44 | BACKENDS = { |
General Comments 0
You need to be logged in to leave comments.
Login now