##// END OF EJS Templates
worker: flush messages written by child processes before exit...
Yuya Nishihara -
r31118:a91c6275 stable
parent child Browse files
Show More
@@ -148,12 +148,16 def _posixworker(ui, func, staticargs, a
148 # may do some clean-ups which could cause surprises like deadlock.
148 # may do some clean-ups which could cause surprises like deadlock.
149 # see sshpeer.cleanup for example.
149 # see sshpeer.cleanup for example.
150 try:
150 try:
151 try:
151 scmutil.callcatch(ui, workerfunc)
152 scmutil.callcatch(ui, workerfunc)
153 finally:
154 ui.flush()
152 except KeyboardInterrupt:
155 except KeyboardInterrupt:
153 os._exit(255)
156 os._exit(255)
154 except: # never return, therefore no re-raises
157 except: # never return, therefore no re-raises
155 try:
158 try:
156 ui.traceback()
159 ui.traceback()
160 ui.flush()
157 finally:
161 finally:
158 os._exit(255)
162 os._exit(255)
159 else:
163 else:
@@ -84,7 +84,8 update with worker processes
84
84
85 $ hg update null
85 $ hg update null
86 0 files updated, 0 files merged, 100 files removed, 0 files unresolved
86 0 files updated, 0 files merged, 100 files removed, 0 files unresolved
87 $ hg update
87 $ hg update -v | grep 100
88 getting 100
88 100 files updated, 0 files merged, 0 files removed, 0 files unresolved
89 100 files updated, 0 files merged, 0 files removed, 0 files unresolved
89
90
90 $ cd ..
91 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now