# HG changeset patch # User Pierre-Yves David # Date 2021-07-10 12:05:59 # Node ID 7bafe40ab78abe16aff0b19d32c028e310bdf673 # Parent 27e75b8bf7843a94e5df389cdb9d09ba408e5a92 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 diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -713,7 +713,7 @@ def _disabledpaths(): # 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)