comparison rhodecode/__init__.py @ 3797:d7488551578e beta

synced vcs with upstream - moved subprocessio module to VCS - many small changes to make embedded vcs as similar to to external lib - use only absolute imports - patch vcs config during load pylons env
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 27 Apr 2013 11:24:25 +0200
parents 7e3d89d9d3a2
children 3a1cf70e0f42
comparison
equal deleted inserted replaced
3796:2b5f94fc3b7a 3797:d7488551578e
25 # along with this program. If not, see <http://www.gnu.org/licenses/>. 25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 import sys 26 import sys
27 import platform 27 import platform
28 28
29 VERSION = (1, 7, 0, 'dev') 29 VERSION = (1, 7, 0, 'dev')
30 BACKENDS = {
31 'hg': 'Mercurial repository',
32 'git': 'Git repository',
33 }
34
35 CELERY_ON = False
36 CELERY_EAGER = False
37
38 # link to config for pylons
39 CONFIG = {}
40
41 # Linked module for extensions
42 EXTENSIONS = {}
30 43
31 try: 44 try:
32 from rhodecode.lib import get_current_revision 45 from rhodecode.lib import get_current_revision
33 _rev = get_current_revision() 46 _rev = get_current_revision()
34 if _rev and len(VERSION) > 3: 47 if _rev and len(VERSION) > 3:
43 __license__ = 'GPLv3' 56 __license__ = 'GPLv3'
44 __py_version__ = sys.version_info 57 __py_version__ = sys.version_info
45 __author__ = 'Marcin Kuzminski' 58 __author__ = 'Marcin Kuzminski'
46 __url__ = 'http://rhodecode.org' 59 __url__ = 'http://rhodecode.org'
47 60
48 PLATFORM_WIN = ('Windows') 61 is_windows = __platform__ in ('Windows')
49 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') #depracated
50
51 is_windows = __platform__ in PLATFORM_WIN
52 is_unix = not is_windows 62 is_unix = not is_windows
53
54
55 BACKENDS = {
56 'hg': 'Mercurial repository',
57 'git': 'Git repository',
58 }
59
60 CELERY_ON = False
61 CELERY_EAGER = False
62
63 # link to config for pylons
64 CONFIG = {}
65
66 # Linked module for extensions
67 EXTENSIONS = {}