equal
deleted
inserted
replaced
49 # be specifying the version(s) of Mercurial they are tested with, or |
49 # be specifying the version(s) of Mercurial they are tested with, or |
50 # leave the attribute unspecified. |
50 # leave the attribute unspecified. |
51 testedwith = 'ships-with-hg-core' |
51 testedwith = 'ships-with-hg-core' |
52 |
52 |
53 def uisetup(ui): |
53 def uisetup(ui): |
54 if pycompat.osname == 'nt': |
54 if pycompat.iswindows: |
55 # no fork on Windows, but we can create a detached process |
55 # no fork on Windows, but we can create a detached process |
56 # https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863.aspx |
56 # https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863.aspx |
57 # No stdlib constant exists for this value |
57 # No stdlib constant exists for this value |
58 DETACHED_PROCESS = 0x00000008 |
58 DETACHED_PROCESS = 0x00000008 |
59 _creationflags = DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP |
59 _creationflags = DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP |