windows: use abspath in subrepoutil
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 10 Jul 2021 14:06:39 +0200
changeset 47629 5cf2059d2647
parent 47628 a125cbbc5782
child 47630 8e5192e41e0b
windows: use abspath in subrepoutil We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11066
mercurial/subrepoutil.py
--- a/mercurial/subrepoutil.py	Sat Jul 10 14:06:29 2021 +0200
+++ b/mercurial/subrepoutil.py	Sat Jul 10 14:06:39 2021 +0200
@@ -458,7 +458,7 @@
             #   C:\some\path\relative
             if urlutil.hasdriveletter(path):
                 if len(path) == 2 or path[2:3] not in br'\/':
-                    path = os.path.abspath(path)
+                    path = util.abspath(path)
             return path
 
     if abort: