windows: use abspath in hgwebdir
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 10 Jul 2021 14:06:19 +0200
changeset 47627 aceede7c4929
parent 47626 1fdf315eff66
child 47628 a125cbbc5782
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
mercurial/hgweb/hgwebdir_mod.py
--- 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