Mercurial > hg
diff mercurial/url.py @ 47630:8e5192e41e0b
windows: use abspath in url
We replace `os.path.abspath` with `util.abspath`. This should solve more "drive
capitalization" issue on Windows.
Differential Revision: https://phab.mercurial-scm.org/D11067
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 10 Jul 2021 14:06:46 +0200 |
parents | ffd3e823a7e5 |
children | 6000f5b25c9b 51b07ac1991c |
line wrap: on
line diff
--- a/mercurial/url.py Sat Jul 10 14:06:39 2021 +0200 +++ b/mercurial/url.py Sat Jul 10 14:06:46 2021 +0200 @@ -10,7 +10,6 @@ from __future__ import absolute_import import base64 -import os import socket import sys @@ -685,7 +684,7 @@ u.scheme = u.scheme.lower() url_, authinfo = u.authinfo() else: - path = util.normpath(os.path.abspath(url_)) + path = util.normpath(util.abspath(url_)) url_ = b'file://' + pycompat.bytesurl( urlreq.pathname2url(pycompat.fsdecode(path)) )