Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

stable hgtk: second attempt at CTRL-C fix

Closes #912 again

Changeset 5e28ed57d229

Parent 0e2f1e898be5

by Steve Borho

Changes to one file · Browse files at 5e28ed57d229 Showing diff from parent 0e2f1e898be5 Diff from another changeset...

 
15
16
17
 
18
19
20
 
30
31
32
 
 
 
 
 
 
33
34
35
 
95
96
97
98
99
100
101
102
 
 
 
 
 
103
104
105
 
15
16
17
18
19
20
21
 
31
32
33
34
35
36
37
38
39
40
41
42
 
102
103
104
 
 
 
 
 
105
106
107
108
109
110
111
112
@@ -15,6 +15,7 @@
 import os  import pdb  import sys +import subprocess  import traceback  import gtk  import gobject @@ -30,6 +31,12 @@
 except ImportError:   config_nofork = None   +try: + import win32con + openflags = win32con.CREATE_NO_WINDOW +except ImportError: + openflags = 0 +  nonrepo_commands = '''userconfig shellconfig clone debugcomplete init  about help version thgstatus serve'''   @@ -95,11 +102,11 @@
  args = sys.argv   else:   args = [sys.executable] + sys.argv - if os.name == 'nt': - args = ['"%s"' % arg for arg in args] - env = os.environ.copy() - env['THG_HGTK_SPAWN'] = '1' - os.spawnve(os.P_NOWAIT, sys.executable, args, env) + os.environ['THG_HGTK_SPAWN'] = '1' + subprocess.Popen(args, + close_fds=True, + creationflags=openflags, + shell=True)   sys.exit(0)    def get_list_from_file(filename):