Changeset - edbf8c9c21d2
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-03-22 23:04:18
marcin@python-works.com
don't use vcs _rev if rhodecode codes are not under version controll
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/__init__.py
Show inline comments
 
@@ -28,13 +28,14 @@ import platform
 

	
 
VERSION = (1, 3, 4, 'b')
 

	
 
try:
 
    from rhodecode.lib import get_current_revision
 
    _rev = get_current_revision()
 
    VERSION += ('dev%s' % _rev[0],)
 
    if _rev:
 
        VERSION += ('dev%s' % _rev[0],)
 
except ImportError:
 
    pass
 

	
 
__version__ = ('.'.join((str(each) for each in VERSION[:3])) +
 
               '.'.join(VERSION[3:]))
 
__dbversion__ = 5  # defines current db version for migrations
0 comments (0 inline, 0 general)