diff mercurial/cmdutil.py @ 10240:3af4b39afe2a

cmdutil: hide child window created by win32 spawndetached() Hiding the child process window is not strictly necessary but it avoids opening an empty shell window when running hg serve as well as a task in the task bar. The window is hidden after the process is already started causing a single flicker.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 10 Jan 2010 18:13:34 +0100
parents 8e4be44a676f
children af24805aa37c
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Wed Jan 06 21:11:58 2010 +0100
+++ b/mercurial/cmdutil.py	Sun Jan 10 18:13:34 2010 +0100
@@ -613,6 +613,7 @@
         except AttributeError:
             pass
         os.unlink(lockpath)
+        util.hidewindow()
         sys.stdout.flush()
         sys.stderr.flush()