# HG changeset patch # User A. S. Budden # Date 2012-03-08 20:17:36 # Node ID 95e45abe7e8ece5733a2d7e227feb9eb12bd5b59 # Parent 287f76b3f502552e0cfa3c087e6b69b812341a38 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 @@ if sys.platform == 'cygwin': 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