D11062: windows: use abspath in extensions
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Jul 10 17:45:57 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We replace `os.path.abspath` with `util.abspath`. This should solve more "drive
capitalization" issue on Windows.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11062
AFFECTED FILES
mercurial/extensions.py
CHANGE DETAILS
diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -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)
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list