changeset 47627:aceede7c4929

windows: use abspath in hgwebdir We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11064
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 10 Jul 2021 14:06:19 +0200
parents 1fdf315eff66
children a125cbbc5782
files mercurial/hgweb/hgwebdir_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Sat Jul 10 14:06:06 2021 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sat Jul 10 14:06:19 2021 +0200
@@ -70,7 +70,7 @@
         except KeyError:
             repos.append((prefix, root))
             continue
-        roothead = os.path.normpath(os.path.abspath(roothead))
+        roothead = os.path.normpath(util.abspath(roothead))
         paths = scmutil.walkrepos(roothead, followsym=True, recurse=recurse)
         repos.extend(urlrepos(prefix, roothead, paths))
     return repos