mercurial/hg.py
changeset 47626 1fdf315eff66
parent 47447 377d8fc20e34
child 48116 5ced12cfa41b
--- a/mercurial/hg.py	Sat Jul 10 14:05:59 2021 +0200
+++ b/mercurial/hg.py	Sat Jul 10 14:06:06 2021 +0200
@@ -567,7 +567,7 @@
 
     # 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 @@
 
         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):