Mercurial > kallithea
annotate rhodecode/config/rcextensions/__init__.py @ 2212:727e1f922a89 beta
exclude the actual grep command in memwatch
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 30 Apr 2012 14:10:58 +0200 |
parents | 926f55b038bc |
children | 6418fdb7d807 |
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 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 # format is {'ext':'Name'} eg. {'py':'Python'} |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 # 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
|
5 # build by pygments |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 EXTRA_MAPPINGS = {} |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 |
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 # WHOOSH INDEX EXTENSIONS |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 # 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
|
12 # 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
|
13 INDEX_EXTENSIONS = [] |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
14 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 # additional extensions for indexing besides the default from pygments |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 # those get's added to INDEX_EXTENSIONS |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 EXTRA_INDEX_EXTENSIONS = [] |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 |
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 # POST CREATE REPOSITORY HOOK |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 #============================================================================== |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 # 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
|
24 def _crhook(*args, **kwargs): |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
26 Post create repository HOOK |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
27 kwargs available: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
28 :param repo_name: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
29 :param repo_type: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
30 :param description: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
31 :param private: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
32 :param created_on: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
33 :param enable_downloads: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
34 :param repo_id: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
35 :param user_id: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
36 :param enable_statistics: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
37 :param clone_uri: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
38 :param fork_id: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
39 :param group_id: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
40 :param created_by: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
41 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
42 return 0 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
43 CREATE_REPO_HOOK = _crhook |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
44 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
45 |
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 # POST PUSH HOOK |
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 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
50 # 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
|
51 # hook that rhodecode uses for logging pushes |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
52 def _pushhook(*args, **kwargs): |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
53 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
54 Post push hook |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
55 kwargs available: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
56 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
57 :param username: name of user who pushed |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
58 :param ip: ip of who pushed |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
59 :param action: pull |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
60 :param repository: repository name |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
61 :param pushed_revs: generator of pushed revisions |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
62 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
63 return 0 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
64 PUSH_HOOK = _pushhook |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
65 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
66 |
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 # POST PULL HOOK |
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 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
71 # 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
|
72 # hook that rhodecode uses for logging pushes |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
73 def _pullhook(*args, **kwargs): |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
74 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
75 Post pull hook |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
76 kwargs available:: |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
77 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
78 :param username: name of user who pulled |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
79 :param ip: ip of who pushed |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
80 :param action: pull |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
81 :param repository: repository name |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
82 """ |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
83 return 0 |
926f55b038bc
added initial rc-extension module
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
84 PULL_HOOK = _pullhook |