##// END OF EJS Templates
diffhelpers: switch to policy importer...
Yuya Nishihara -
r32370:017ad85e default
parent child Browse files
Show More
@@ -17,7 +17,6 b' import traceback'
17 17
18 18 # Modules that have both Python and C implementations.
19 19 _dualmodules = (
20 'diffhelpers.py',
21 20 'mpatch.py',
22 21 'parsers.py',
23 22 )
@@ -26,7 +26,6 b' allowsymbolimports = ('
26 26
27 27 # Modules that have both Python and C implementations.
28 28 _dualmodules = (
29 'diffhelpers.py',
30 29 'mpatch.py',
31 30 'parsers.py',
32 31 )
@@ -14,7 +14,7 b''
14 14 <File Name="library.zip" KeyPath="yes" />
15 15 <File Name="mercurial.cext.base85.pyd" />
16 16 <File Name="mercurial.cext.bdiff.pyd" />
17 <File Name="mercurial.diffhelpers.pyd" />
17 <File Name="mercurial.cext.diffhelpers.pyd" />
18 18 <File Name="mercurial.mpatch.pyd" />
19 19 <File Name="mercurial.cext.osutil.pyd" />
20 20 <File Name="mercurial.parsers.pyd" />
@@ -23,7 +23,6 b' modulepolicy = policy.policy'
23 23 # Modules that have both Python and C implementations. See also the
24 24 # set of .py files under mercurial/pure/.
25 25 _dualmodules = {
26 'mercurial.diffhelpers',
27 26 'mercurial.mpatch',
28 27 'mercurial.parsers',
29 28 }
1 NO CONTENT: file renamed from mercurial/diffhelpers.c to mercurial/cext/diffhelpers.c
@@ -27,18 +27,20 b' from .node import ('
27 27 )
28 28 from . import (
29 29 copies,
30 diffhelpers,
31 30 encoding,
32 31 error,
33 32 mail,
34 33 mdiff,
35 34 pathutil,
35 policy,
36 36 pycompat,
37 37 scmutil,
38 38 similar,
39 39 util,
40 40 vfs as vfsmod,
41 41 )
42
43 diffhelpers = policy.importmod(r'diffhelpers')
42 44 stringio = util.stringio
43 45
44 46 gitre = re.compile(br'diff --git a/(.*) b/(.*)')
@@ -628,7 +628,7 b' extmodules = ['
628 628 'mercurial/cext/bdiff.c'],
629 629 include_dirs=common_include_dirs,
630 630 depends=common_depends + ['mercurial/bdiff.h']),
631 Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c'],
631 Extension('mercurial.cext.diffhelpers', ['mercurial/cext/diffhelpers.c'],
632 632 include_dirs=common_include_dirs,
633 633 depends=common_depends),
634 634 Extension('mercurial.mpatch', ['mercurial/mpatch.c',
General Comments 0
You need to be logged in to leave comments. Login now