Show More
@@ -14,7 +14,10 import os | |||||
14 | import random |
|
14 | import random | |
15 | import subprocess |
|
15 | import subprocess | |
16 |
|
16 | |||
17 |
from . import |
|
17 | from . import ( | |
|
18 | encoding, | |||
|
19 | pycompat, | |||
|
20 | ) | |||
18 |
|
21 | |||
19 | _kernel32 = ctypes.windll.kernel32 |
|
22 | _kernel32 = ctypes.windll.kernel32 | |
20 | _advapi32 = ctypes.windll.advapi32 |
|
23 | _advapi32 = ctypes.windll.advapi32 | |
@@ -440,7 +443,7 def spawndetached(args): | |||||
440 |
|
443 | |||
441 | res = _kernel32.CreateProcessA( |
|
444 | res = _kernel32.CreateProcessA( | |
442 | None, args, None, None, False, _CREATE_NO_WINDOW, |
|
445 | None, args, None, None, False, _CREATE_NO_WINDOW, | |
443 |
env, |
|
446 | env, pycompat.getcwd(), ctypes.byref(si), ctypes.byref(pi)) | |
444 | if not res: |
|
447 | if not res: | |
445 | raise ctypes.WinError() |
|
448 | raise ctypes.WinError() | |
446 |
|
449 |
@@ -31,9 +31,6 New errors are not allowed. Warnings are | |||||
31 | > policy = os.environ.get('HGMODULEPOLICY', policy) |
|
31 | > policy = os.environ.get('HGMODULEPOLICY', policy) | |
32 | use encoding.environ instead (py3) |
|
32 | use encoding.environ instead (py3) | |
33 | Skipping mercurial/statprof.py it has no-che?k-code (glob) |
|
33 | Skipping mercurial/statprof.py it has no-che?k-code (glob) | |
34 | mercurial/win32.py:443: |
|
|||
35 | > env, os.getcwd(), ctypes.byref(si), ctypes.byref(pi)) |
|
|||
36 | use pycompat.getcwd instead (py3) |
|
|||
37 | [1] |
|
34 | [1] | |
38 |
|
35 | |||
39 | @commands in debugcommands.py should be in alphabetical order. |
|
36 | @commands in debugcommands.py should be in alphabetical order. |
General Comments 0
You need to be logged in to leave comments.
Login now