Mercurial > kallithea
annotate rhodecode/config/rcextensions/__init__.py @ 2875:f68522e3df79 beta
more logging in pygrack
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 28 Sep 2012 16:26:32 +0200 |
parents | 6418fdb7d807 |
children | 1b275d04ac07 |
rev | line source |
---|---|
2105
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 # Additional mappings that are not present in the pygments lexers |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 # used for building stats |
2403
6418fdb7d807
updated header instructions for rcextensions
Marcin Kuzminski <marcin@python-works.com>
parents:
2105
diff
changeset
|
3 # format is {'ext':['Names']} eg. {'py':['Python']} note: there can be |
6418fdb7d807
updated header instructions for rcextensions
Marcin Kuzminski <marcin@python-works.com>
parents:
2105
diff
changeset
|
4 # more than one name for extension |
2105
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 # NOTE: that this will overide any mappings in LANGUAGES_EXTENSIONS_MAP |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 # build by pygments |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 EXTRA_MAPPINGS = {} |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 # WHOOSH INDEX EXTENSIONS |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
12 # if INDEX_EXTENSIONS is [] it'll use pygments lexers extensions by default. |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
13 # To set your own just add to this list extensions to index with content |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
14 INDEX_EXTENSIONS = [] |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 # additional extensions for indexing besides the default from pygments |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 # those get's added to INDEX_EXTENSIONS |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 EXTRA_INDEX_EXTENSIONS = [] |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
19 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
20 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
21 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 # POST CREATE REPOSITORY HOOK |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
24 # this function will be executed after each repository is created |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 def _crhook(*args, **kwargs): |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
26 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
27 Post create repository HOOK |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
28 kwargs available: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
29 :param repo_name: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
30 :param repo_type: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
31 :param description: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
32 :param private: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
33 :param created_on: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
34 :param enable_downloads: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
35 :param repo_id: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
36 :param user_id: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
37 :param enable_statistics: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
38 :param clone_uri: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
39 :param fork_id: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
40 :param group_id: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
41 :param created_by: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
42 """ |
2403
6418fdb7d807
updated header instructions for rcextensions
Marcin Kuzminski <marcin@python-works.com>
parents:
2105
diff
changeset
|
43 |
2105
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
44 return 0 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
45 CREATE_REPO_HOOK = _crhook |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
46 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
47 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
48 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
49 # POST PUSH HOOK |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
50 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
51 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
52 # this function will be executed after each push it's runned after the build-in |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
53 # hook that rhodecode uses for logging pushes |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
54 def _pushhook(*args, **kwargs): |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
55 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
56 Post push hook |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
57 kwargs available: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
58 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
59 :param username: name of user who pushed |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
60 :param ip: ip of who pushed |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
61 :param action: pull |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
62 :param repository: repository name |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
63 :param pushed_revs: generator of pushed revisions |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
64 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
65 return 0 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
66 PUSH_HOOK = _pushhook |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
67 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
68 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
69 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
70 # POST PULL HOOK |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
71 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
72 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
73 # this function will be executed after each push it's runned after the build-in |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
74 # hook that rhodecode uses for logging pushes |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
75 def _pullhook(*args, **kwargs): |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
76 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
77 Post pull hook |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
78 kwargs available:: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
79 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
80 :param username: name of user who pulled |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
81 :param ip: ip of who pushed |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
82 :param action: pull |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
83 :param repository: repository name |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
84 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
85 return 0 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
86 PULL_HOOK = _pullhook |