[PATCH] posix: ignore execution bit in cygwin (issue3301)
A. S. Budden
abudden at gmail.com
Thu Mar 8 14:24:39 CST 2012
# HG changeset patch
# User A. S. Budden <abudden at gmail.com>
# Date 1331237856 0
# Node ID cc9db4db7530aaa8dfc76d5229056c297d2b1462
# Parent 726ce5d794b28c2aed05cba2644af7997c84e120
posix: ignore execution bit in cygwin (issue3301)
diff --git a/mercurial/posix.py b/mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -270,6 +270,13 @@
return encodingupper(path)
+ # Cygwin translates native ACLs to POSIX permissions,
+ # but these translations are not supported by native
+ # tools, so the exec bit tends to be set erroneously.
+ # Therefore, disable executable bit access on Cygwin.
+ def checkexec(path):
+ return False
+
def shellquote(s):
if os.sys.platform == 'OpenVMS':
return '"%s"' % s
More information about the Mercurial-devel
mailing list