comparison mercurial/posix.py @ 50996:82bc0b26db50

openvms: mark symlink as unsupported on OpenVMS OpenVMS's symlink emulation is broken on some OpenVMS versions, so we better disable them altogether for now.
author Jean-Francois Pieronne <jf.pieronne@laposte.net>
date Thu, 03 Aug 2023 02:34:17 +0200
parents 18c8c18993f0
children 9d3721552b6c
comparison
equal deleted inserted replaced
50995:80c243eab724 50996:82bc0b26db50
551 # Windows, with other native tools, or on shared volumes 551 # Windows, with other native tools, or on shared volumes
552 def checklink(path: bytes) -> bool: 552 def checklink(path: bytes) -> bool:
553 return False 553 return False
554 554
555 555
556 if pycompat.sysplatform == b'OpenVMS':
557 # OpenVMS's symlink emulation is broken on some OpenVMS versions.
558 def checklink(path):
559 return False
560
561
556 _needsshellquote: Optional[Match[bytes]] = None 562 _needsshellquote: Optional[Match[bytes]] = None
557 563
558 564
559 def shellquote(s: bytes) -> bytes: 565 def shellquote(s: bytes) -> bytes:
560 if pycompat.sysplatform == b'OpenVMS': 566 if pycompat.sysplatform == b'OpenVMS':