Mercurial > public > mercurial-scm > hg
diff mercurial/util.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 | 09ff5d532a25 |
children | ae79611e3115 |
line wrap: on
line diff
--- a/mercurial/util.py Sat Jul 10 13:10:18 2021 +0200 +++ b/mercurial/util.py Sat Jul 10 13:46:24 2021 +0200 @@ -99,6 +99,7 @@ _ = i18n._ +abspath = platform.abspath bindunixsocket = platform.bindunixsocket cachestat = platform.cachestat checkexec = platform.checkexec @@ -2632,7 +2633,7 @@ return if err.errno != errno.ENOENT or not name: raise - parent = os.path.dirname(os.path.abspath(name)) + parent = os.path.dirname(abspath(name)) if parent == name: raise makedirs(parent, mode, notindexed)