Show More
@@ -21,7 +21,6 b' import traceback' | |||||
21 | 'bdiff.py', |
|
21 | 'bdiff.py', | |
22 | 'diffhelpers.py', |
|
22 | 'diffhelpers.py', | |
23 | 'mpatch.py', |
|
23 | 'mpatch.py', | |
24 | 'osutil.py', |
|
|||
25 | 'parsers.py', |
|
24 | 'parsers.py', | |
26 | ) |
|
25 | ) | |
27 |
|
26 |
@@ -30,7 +30,6 b' allowsymbolimports = (' | |||||
30 | 'bdiff.py', |
|
30 | 'bdiff.py', | |
31 | 'diffhelpers.py', |
|
31 | 'diffhelpers.py', | |
32 | 'mpatch.py', |
|
32 | 'mpatch.py', | |
33 | 'osutil.py', |
|
|||
34 | 'parsers.py', |
|
33 | 'parsers.py', | |
35 | ) |
|
34 | ) | |
36 |
|
35 |
@@ -16,7 +16,7 b'' | |||||
16 | <File Name="mercurial.bdiff.pyd" /> |
|
16 | <File Name="mercurial.bdiff.pyd" /> | |
17 | <File Name="mercurial.diffhelpers.pyd" /> |
|
17 | <File Name="mercurial.diffhelpers.pyd" /> | |
18 | <File Name="mercurial.mpatch.pyd" /> |
|
18 | <File Name="mercurial.mpatch.pyd" /> | |
19 | <File Name="mercurial.osutil.pyd" /> |
|
19 | <File Name="mercurial.cext.osutil.pyd" /> | |
20 | <File Name="mercurial.parsers.pyd" /> |
|
20 | <File Name="mercurial.parsers.pyd" /> | |
21 | <File Name="pyexpat.pyd" /> |
|
21 | <File Name="pyexpat.pyd" /> | |
22 | <File Name="bz2.pyd" /> |
|
22 | <File Name="bz2.pyd" /> |
@@ -27,7 +27,6 b' modulepolicy = policy.policy' | |||||
27 | 'mercurial.bdiff', |
|
27 | 'mercurial.bdiff', | |
28 | 'mercurial.diffhelpers', |
|
28 | 'mercurial.diffhelpers', | |
29 | 'mercurial.mpatch', |
|
29 | 'mercurial.mpatch', | |
30 | 'mercurial.osutil', |
|
|||
31 | 'mercurial.parsers', |
|
30 | 'mercurial.parsers', | |
32 | } |
|
31 | } | |
33 |
|
32 |
1 | NO CONTENT: file renamed from mercurial/osutil.c to mercurial/cext/osutil.c |
|
NO CONTENT: file renamed from mercurial/osutil.c to mercurial/cext/osutil.c |
@@ -1029,6 +1029,8 b' def debuginstall(ui, **opts):' | |||||
1029 | base85, |
|
1029 | base85, | |
1030 | bdiff, |
|
1030 | bdiff, | |
1031 | mpatch, |
|
1031 | mpatch, | |
|
1032 | ) | |||
|
1033 | from .cext import ( | |||
1032 | osutil, |
|
1034 | osutil, | |
1033 | ) |
|
1035 | ) | |
1034 | dir(bdiff), dir(mpatch), dir(base85), dir(osutil) # quiet pyflakes |
|
1036 | dir(bdiff), dir(mpatch), dir(base85), dir(osutil) # quiet pyflakes |
@@ -13,7 +13,7 b' import os' | |||||
13 | import socket |
|
13 | import socket | |
14 | import stat as statmod |
|
14 | import stat as statmod | |
15 |
|
15 | |||
16 | from . import ( |
|
16 | from .. import ( | |
17 | policy, |
|
17 | policy, | |
18 | pycompat, |
|
18 | pycompat, | |
19 | ) |
|
19 | ) |
@@ -46,11 +46,13 b' from . import (' | |||||
46 | encoding, |
|
46 | encoding, | |
47 | error, |
|
47 | error, | |
48 | i18n, |
|
48 | i18n, | |
49 | osutil, |
|
|||
50 | parsers, |
|
49 | parsers, | |
|
50 | policy, | |||
51 | pycompat, |
|
51 | pycompat, | |
52 | ) |
|
52 | ) | |
53 |
|
53 | |||
|
54 | osutil = policy.importmod(r'osutil') | |||
|
55 | ||||
54 | b85decode = base85.b85decode |
|
56 | b85decode = base85.b85decode | |
55 | b85encode = base85.b85encode |
|
57 | b85encode = base85.b85encode | |
56 |
|
58 |
@@ -17,7 +17,7 b' import sys' | |||||
17 | from .i18n import _ |
|
17 | from .i18n import _ | |
18 | from . import ( |
|
18 | from . import ( | |
19 | encoding, |
|
19 | encoding, | |
20 |
o |
|
20 | policy, | |
21 | pycompat, |
|
21 | pycompat, | |
22 | win32, |
|
22 | win32, | |
23 | ) |
|
23 | ) | |
@@ -28,6 +28,8 b' try:' | |||||
28 | except ImportError: |
|
28 | except ImportError: | |
29 | import winreg |
|
29 | import winreg | |
30 |
|
30 | |||
|
31 | osutil = policy.importmod(r'osutil') | |||
|
32 | ||||
31 | executablepath = win32.executablepath |
|
33 | executablepath = win32.executablepath | |
32 | getuser = win32.getuser |
|
34 | getuser = win32.getuser | |
33 | hidewindow = win32.hidewindow |
|
35 | hidewindow = win32.hidewindow |
@@ -641,7 +641,7 b' extmodules = [' | |||||
641 | 'mercurial/pathencode.c'], |
|
641 | 'mercurial/pathencode.c'], | |
642 | include_dirs=common_include_dirs, |
|
642 | include_dirs=common_include_dirs, | |
643 | depends=common_depends), |
|
643 | depends=common_depends), | |
644 | Extension('mercurial.osutil', ['mercurial/osutil.c'], |
|
644 | Extension('mercurial.cext.osutil', ['mercurial/cext/osutil.c'], | |
645 | include_dirs=common_include_dirs, |
|
645 | include_dirs=common_include_dirs, | |
646 | extra_compile_args=osutil_cflags, |
|
646 | extra_compile_args=osutil_cflags, | |
647 | extra_link_args=osutil_ldflags, |
|
647 | extra_link_args=osutil_ldflags, |
General Comments 0
You need to be logged in to leave comments.
Login now