##// END OF EJS Templates
config: move various py templates to kallithea/templates/py/...
Mads Kiilerich -
r8448:d332fca2 default
parent child Browse files
Show More
@@ -8,9 +8,6 b' omit ='
8 kallithea/lib/dbmigrate/*
8 kallithea/lib/dbmigrate/*
9 # the tests themselves should not be part of the coverage report
9 # the tests themselves should not be part of the coverage report
10 kallithea/tests/*
10 kallithea/tests/*
11 # the scm hooks are not run in the kallithea process
12 kallithea/config/post_receive_tmpl.py
13 kallithea/config/pre_receive_tmpl.py
14
11
15 # same omit lines should be present in sections 'run' and 'report'
12 # same omit lines should be present in sections 'run' and 'report'
16 [report]
13 [report]
@@ -23,9 +20,6 b' omit ='
23 kallithea/lib/dbmigrate/*
20 kallithea/lib/dbmigrate/*
24 # the tests themselves should not be part of the coverage report
21 # the tests themselves should not be part of the coverage report
25 kallithea/tests/*
22 kallithea/tests/*
26 # the scm hooks are not run in the kallithea process
27 kallithea/config/post_receive_tmpl.py
28 kallithea/config/pre_receive_tmpl.py
29
23
30 [paths]
24 [paths]
31 source =
25 source =
@@ -39,7 +39,7 b' def extensions_create():'
39 """
39 """
40 here = kallithea.CONFIG['here']
40 here = kallithea.CONFIG['here']
41 content = pkg_resources.resource_string(
41 content = pkg_resources.resource_string(
42 'kallithea', os.path.join('config', 'extensions', 'extensions.py')
42 'kallithea', os.path.join('templates', 'py', 'extensions.py')
43 )
43 )
44 ext_file = os.path.join(here, 'extensions.py')
44 ext_file = os.path.join(here, 'extensions.py')
45 if os.path.exists(ext_file):
45 if os.path.exists(ext_file):
@@ -705,11 +705,11 b' class ScmModel(object):'
705
705
706 tmpl_post = b"#!%s\n" % safe_bytes(self._get_git_hook_interpreter())
706 tmpl_post = b"#!%s\n" % safe_bytes(self._get_git_hook_interpreter())
707 tmpl_post += pkg_resources.resource_string(
707 tmpl_post += pkg_resources.resource_string(
708 'kallithea', os.path.join('config', 'post_receive_tmpl.py')
708 'kallithea', os.path.join('templates', 'py', 'git_post_receive_hook.py')
709 )
709 )
710 tmpl_pre = b"#!%s\n" % safe_bytes(self._get_git_hook_interpreter())
710 tmpl_pre = b"#!%s\n" % safe_bytes(self._get_git_hook_interpreter())
711 tmpl_pre += pkg_resources.resource_string(
711 tmpl_pre += pkg_resources.resource_string(
712 'kallithea', os.path.join('config', 'pre_receive_tmpl.py')
712 'kallithea', os.path.join('templates', 'py', 'git_pre_receive_hook.py')
713 )
713 )
714
714
715 for h_type, tmpl in [('pre', tmpl_pre), ('post', tmpl_post)]:
715 for h_type, tmpl in [('pre', tmpl_pre), ('post', tmpl_post)]:
1 NO CONTENT: file renamed from kallithea/config/extensions/extensions.py to kallithea/templates/py/extensions.py
NO CONTENT: file renamed from kallithea/config/extensions/extensions.py to kallithea/templates/py/extensions.py
1 NO CONTENT: file renamed from kallithea/config/post_receive_tmpl.py to kallithea/templates/py/git_post_receive_hook.py
NO CONTENT: file renamed from kallithea/config/post_receive_tmpl.py to kallithea/templates/py/git_post_receive_hook.py
1 NO CONTENT: file renamed from kallithea/config/pre_receive_tmpl.py to kallithea/templates/py/git_pre_receive_hook.py
NO CONTENT: file renamed from kallithea/config/pre_receive_tmpl.py to kallithea/templates/py/git_pre_receive_hook.py
General Comments 0
You need to be logged in to leave comments. Login now