posix: disable cygwin's symlink emulation
authorMatt Mackall <mpm@selenic.com>
Thu, 08 Mar 2012 15:59:47 -0600
changeset 16241 60cc3a0d2249
parent 16240 95e45abe7e8e
child 16245 a18ad914aa21
posix: disable cygwin's symlink emulation
mercurial/posix.py
--- a/mercurial/posix.py	Thu Mar 08 20:17:36 2012 +0000
+++ b/mercurial/posix.py	Thu Mar 08 15:59:47 2012 -0600
@@ -277,6 +277,12 @@
     def checkexec(path):
         return False
 
+    # Similarly, Cygwin's symlink emulation is likely to create
+    # problems when Mercurial is used from both Cygwin and native
+    # Windows, with other native tools, or on shared volumes
+    def checklink(path):
+        return False
+
 def shellquote(s):
     if os.sys.platform == 'OpenVMS':
         return '"%s"' % s