comparison rhodecode/__init__.py @ 857:3d0661b8aaa4

merged with beta branch
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 18 Dec 2010 14:45:58 +0100
parents d85b0948e539 b76da6f22e0f
children 4c123ade8485
comparison
equal deleted inserted replaced
721:06cfcede13ab 857:3d0661b8aaa4
1 #!/usr/bin/env python 1 # -*- coding: utf-8 -*-
2 # encoding: utf-8 2 """
3 # RhodeCode, a web based repository management based on pylons 3 rhodecode.__init__
4 # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> 4 ~~~~~~~~~~~~~~~~~~
5 # 5
6 RhodeCode, a web based repository management based on pylons
7 versioning implementation: http://semver.org/
8
9 :created_on: Apr 9, 2010
10 :author: marcink
11 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
12 :license: GPLv3, see COPYING for more details.
13 """
6 # This program is free software; you can redistribute it and/or 14 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License 15 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; version 2 16 # as published by the Free Software Foundation; version 2
9 # of the License or (at your opinion) any later version of the license. 17 # of the License or (at your opinion) any later version of the license.
10 # 18 #
15 # 23 #
16 # You should have received a copy of the GNU General Public License 24 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software 25 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 26 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 # MA 02110-1301, USA. 27 # MA 02110-1301, USA.
20 """
21 Created on April 9, 2010
22 RhodeCode, a web based repository management based on pylons
23 versioning implementation: http://semver.org/
24 @author: marcink
25 """
26 28
27 VERSION = (1, 0, 2,)
28 29
30 VERSION = (1, 1, 0)
29 __version__ = '.'.join((str(each) for each in VERSION[:4])) 31 __version__ = '.'.join((str(each) for each in VERSION[:4]))
32 __dbversion__ = 2 #defines current db version for migrations
33
34 try:
35 from rhodecode.lib.utils import get_current_revision
36 _rev = get_current_revision()
37 except ImportError:
38 #this is needed when doing some setup.py operations
39 _rev = False
40
41 if len(VERSION) > 3 and _rev:
42 __version__ += ' [rev:%s]' % _rev[0]
30 43
31 def get_version(): 44 def get_version():
32 """ 45 """Returns shorter version (digit parts only) as string."""
33 Returns shorter version (digit parts only) as string. 46
34 """
35 return '.'.join((str(each) for each in VERSION[:3])) 47 return '.'.join((str(each) for each in VERSION[:3]))
48
49 BACKENDS = {
50 'hg': 'Mercurial repository',
51 #'git': 'Git repository',
52 }