equal
deleted
inserted
replaced
20 |
20 |
21 The server module contains functions to initialize a new repository. |
21 The server module contains functions to initialize a new repository. |
22 """ |
22 """ |
23 from __future__ import print_function |
23 from __future__ import print_function |
24 |
24 |
25 |
|
26 |
|
27 from contextlib import contextmanager |
25 from contextlib import contextmanager |
28 |
26 |
29 from six import text_type, string_types |
27 from six import text_type, string_types |
30 from six.moves import filter |
28 from six.moves import filter |
31 |
29 |
60 |
58 |
61 # server-side debugging ######################################################## |
59 # server-side debugging ######################################################## |
62 |
60 |
63 # server debugging flags. They may be combined using binary operators. |
61 # server debugging flags. They may be combined using binary operators. |
64 |
62 |
65 #:no debug information |
63 #: no debug information |
66 DBG_NONE = 0 #: no debug information |
64 DBG_NONE = 0 #: no debug information |
67 #: rql execution information |
65 #: rql execution information |
68 DBG_RQL = 1 |
66 DBG_RQL = 1 |
69 #: executed sql |
67 #: executed sql |
70 DBG_SQL = 2 |
68 DBG_SQL = 2 |
71 #: repository events |
69 #: repository events |
72 DBG_REPO = 4 |
70 DBG_REPO = 4 |
73 #: multi-sources |
71 #: multi-sources |
74 DBG_MS = 8 |
72 DBG_MS = 8 |
75 #: hooks |
73 #: hooks |
76 DBG_HOOKS = 16 |
74 DBG_HOOKS = 16 |
77 #: operations |
75 #: operations |
78 DBG_OPS = 32 |
76 DBG_OPS = 32 |
79 #: security |
77 #: security |