D11066: windows: use abspath in subrepoutil
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Jul 10 17:46:12 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We replace `os.path.abspath` with `util.abspath`. This should solve more "drive
capitalization" issue on Windows.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11066
AFFECTED FILES
mercurial/subrepoutil.py
CHANGE DETAILS
diff --git a/mercurial/subrepoutil.py b/mercurial/subrepoutil.py
--- a/mercurial/subrepoutil.py
+++ b/mercurial/subrepoutil.py
@@ -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:
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list