changeset 47625:7bafe40ab78a

windows: use abspath in extensions We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11062
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 10 Jul 2021 14:05:59 +0200
parents 27e75b8bf784
children 1fdf315eff66
files mercurial/extensions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/extensions.py	Sat Jul 10 14:05:49 2021 +0200
+++ b/mercurial/extensions.py	Sat Jul 10 14:05:59 2021 +0200
@@ -713,7 +713,7 @@
     # it might not be on a filesystem even if it does.
     if util.safehasattr(hgext, '__file__'):
         extpath = os.path.dirname(
-            os.path.abspath(pycompat.fsencode(hgext.__file__))
+            util.abspath(pycompat.fsencode(hgext.__file__))
         )
         try:
             files = os.listdir(extpath)