# HG changeset patch # User Pierre-Yves David # Date 2021-07-10 12:06:29 # Node ID a125cbbc578265b3364714c91c603a16e28768e0 # Parent aceede7c4929d3789ecac418a119b0ff8b52bb62 windows: use abspath in subrepo We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11065 diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -60,7 +60,7 @@ def _expandedabspath(path): expandedpath = urlutil.urllocalpath(util.expandpath(path)) u = urlutil.url(expandedpath) if not u.scheme: - path = util.normpath(os.path.abspath(u.path)) + path = util.normpath(util.abspath(u.path)) return path