# HG changeset patch # User Pierre-Yves David # Date 2021-07-10 12:06:06 # Node ID 1fdf315eff66950f7e22b02c7bb9a174354ba162 # Parent 7bafe40ab78abe16aff0b19d32c028e310bdf673 windows: use abspath in mercurial/hg.py We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11063 diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -567,7 +567,7 @@ def clonewithshare( # Resolve the value to put in [paths] section for the source. if islocal(source): - defaultpath = os.path.abspath(urlutil.urllocalpath(source)) + defaultpath = util.abspath(urlutil.urllocalpath(source)) else: defaultpath = source @@ -821,7 +821,7 @@ def clone( abspath = origsource if islocal(origsource): - abspath = os.path.abspath(urlutil.urllocalpath(origsource)) + abspath = util.abspath(urlutil.urllocalpath(origsource)) if islocal(dest): if os.path.exists(dest):