util: move "default" hidewindow to posix.py
authorAdrian Buehlmann <adrian@cadifra.com>
Fri, 22 Jul 2011 10:35:05 +0200
changeset 14911 5b39503157fd
parent 14910 570ea0259b0a
child 14912 ec46a7da9f2c
util: move "default" hidewindow to posix.py There is a hidewindow in win32.py, which we get via windows.py
mercurial/posix.py
mercurial/util.py
--- a/mercurial/posix.py	Fri Jul 22 10:31:56 2011 +0200
+++ b/mercurial/posix.py	Fri Jul 22 10:35:05 2011 +0200
@@ -340,3 +340,11 @@
 
 def lookupreg(key, name=None, scope=None):
     return None
+
+def hidewindow():
+    """Hide current shell window.
+
+    Used to hide the window opened when starting asynchronous
+    child process under Windows, unneeded on other systems.
+    """
+    pass
--- a/mercurial/util.py	Fri Jul 22 10:31:56 2011 +0200
+++ b/mercurial/util.py	Fri Jul 22 10:35:05 2011 +0200
@@ -475,14 +475,6 @@
             return _("filename ends with '%s', which is not allowed "
                      "on Windows") % t
 
-def hidewindow():
-    """Hide current shell window.
-
-    Used to hide the window opened when starting asynchronous
-    child process under Windows, unneeded on other systems.
-    """
-    pass
-
 if os.name == 'nt':
     checkosfilename = checkwinfilename
     from windows import *