##// END OF EJS Templates
flagutil: create a `mercurial.revlogutils.flagutil` module...
marmoute -
r42954:ca5ca3ba default
parent child Browse files
Show More
@@ -0,0 +1,31
1 # flagutils.py - code to deal with revlog flags and their processors
2 #
3 # Copyright 2016 Remi Chaintron <remi@fb.com>
4 # Copyright 2016-2019 Pierre-Yves David <pierre-yves.david@ens-lyon.org>
5 #
6 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2 or any later version.
8
9 from __future__ import absolute_import
10
11 from .constants import (
12 REVIDX_DEFAULT_FLAGS,
13 REVIDX_ELLIPSIS,
14 REVIDX_EXTSTORED,
15 REVIDX_FLAGS_ORDER,
16 REVIDX_ISCENSORED,
17 REVIDX_KNOWN_FLAGS,
18 REVIDX_RAWTEXT_CHANGING_FLAGS,
19 )
20
21 # blanked usage of all the name to prevent pyflakes constraints
22 # We need these name available in the module for extensions.
23 REVIDX_ISCENSORED
24 REVIDX_ELLIPSIS
25 REVIDX_EXTSTORED
26 REVIDX_DEFAULT_FLAGS
27 REVIDX_FLAGS_ORDER
28 REVIDX_KNOWN_FLAGS
29 REVIDX_RAWTEXT_CHANGING_FLAGS
30
31
@@ -31,6 +31,7 allowsymbolimports = (
31 'mercurial.node',
31 'mercurial.node',
32 # for revlog to re-export constant to extensions
32 # for revlog to re-export constant to extensions
33 'mercurial.revlogutils.constants',
33 'mercurial.revlogutils.constants',
34 'mercurial.revlogutils.flagutil',
34 # for cffi modules to re-export pure functions
35 # for cffi modules to re-export pure functions
35 'mercurial.pure.base85',
36 'mercurial.pure.base85',
36 'mercurial.pure.bdiff',
37 'mercurial.pure.bdiff',
@@ -38,13 +38,6 from .i18n import _
38 from .revlogutils.constants import (
38 from .revlogutils.constants import (
39 FLAG_GENERALDELTA,
39 FLAG_GENERALDELTA,
40 FLAG_INLINE_DATA,
40 FLAG_INLINE_DATA,
41 REVIDX_DEFAULT_FLAGS,
42 REVIDX_ELLIPSIS,
43 REVIDX_EXTSTORED,
44 REVIDX_FLAGS_ORDER,
45 REVIDX_ISCENSORED,
46 REVIDX_KNOWN_FLAGS,
47 REVIDX_RAWTEXT_CHANGING_FLAGS,
48 REVLOGV0,
41 REVLOGV0,
49 REVLOGV1,
42 REVLOGV1,
50 REVLOGV1_FLAGS,
43 REVLOGV1_FLAGS,
@@ -54,6 +47,15 from .revlogutils.constants import (
54 REVLOG_DEFAULT_FORMAT,
47 REVLOG_DEFAULT_FORMAT,
55 REVLOG_DEFAULT_VERSION,
48 REVLOG_DEFAULT_VERSION,
56 )
49 )
50 from .revlogutils.flagutil import (
51 REVIDX_DEFAULT_FLAGS,
52 REVIDX_ELLIPSIS,
53 REVIDX_EXTSTORED,
54 REVIDX_FLAGS_ORDER,
55 REVIDX_ISCENSORED,
56 REVIDX_KNOWN_FLAGS,
57 REVIDX_RAWTEXT_CHANGING_FLAGS,
58 )
57 from .thirdparty import (
59 from .thirdparty import (
58 attr,
60 attr,
59 )
61 )
General Comments 0
You need to be logged in to leave comments. Login now