comparison mercurial/posix.py @ 47622:bb917eea1605

windows: introduce a `util.abspath` to replace os.path.abspath This will let us mitigate the drive letter capitalization hell. See inline comment for details. Differential Revision: https://phab.mercurial-scm.org/D11059
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 10 Jul 2021 13:46:24 +0200
parents 5b3513177f2b
children 6000f5b25c9b
comparison
equal deleted inserted replaced
47621:d6ee6456bd5f 47622:bb917eea1605
34 34
35 osutil = policy.importmod('osutil') 35 osutil = policy.importmod('osutil')
36 36
37 normpath = os.path.normpath 37 normpath = os.path.normpath
38 samestat = os.path.samestat 38 samestat = os.path.samestat
39 abspath = os.path.abspath # re-exports
40
39 try: 41 try:
40 oslink = os.link 42 oslink = os.link
41 except AttributeError: 43 except AttributeError:
42 # Some platforms build Python without os.link on systems that are 44 # Some platforms build Python without os.link on systems that are
43 # vaguely unix-like but don't have hardlink support. For those 45 # vaguely unix-like but don't have hardlink support. For those