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
--- 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