Mercurial > hg
comparison mercurial/posix.py @ 49895:07792fd1837f
doc: add a few comments
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Wed, 11 Jan 2023 19:53:58 +0000 |
parents | 3fd5824f1177 |
children | 18c8c18993f0 |
comparison
equal
deleted
inserted
replaced
49894:678588b01af1 | 49895:07792fd1837f |
---|---|
282 # checkisexec does not exist - fall through ... | 282 # checkisexec does not exist - fall through ... |
283 pass | 283 pass |
284 else: | 284 else: |
285 # checkisexec exists, check if it actually is exec | 285 # checkisexec exists, check if it actually is exec |
286 if m & EXECFLAGS != 0: | 286 if m & EXECFLAGS != 0: |
287 # ensure checkisexec exists, check it isn't exec | 287 # ensure checknoexec exists, check it isn't exec |
288 try: | 288 try: |
289 m = os.stat(checknoexec).st_mode | 289 m = os.stat(checknoexec).st_mode |
290 except FileNotFoundError: | 290 except FileNotFoundError: |
291 open(checknoexec, b'w').close() # might fail | 291 open(checknoexec, b'w').close() # might fail |
292 m = os.stat(checknoexec).st_mode | 292 m = os.stat(checknoexec).st_mode |