Mercurial > hg
changeset 16240:95e45abe7e8e
posix: ignore execution bit in cygwin (issue3301)
author | A. S. Budden <abudden@gmail.com> |
---|---|
date | Thu, 08 Mar 2012 20:17:36 +0000 |
parents | 287f76b3f502 |
children | 60cc3a0d2249 |
files | mercurial/posix.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/posix.py Sat Feb 18 20:10:19 2012 +0100 +++ b/mercurial/posix.py Thu Mar 08 20:17:36 2012 +0000 @@ -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