comparison mercurial/hgweb/hgwebdir_mod.py @ 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 d4ba4d51f85f
children de2e04fe4897
comparison
equal deleted inserted replaced
47626:1fdf315eff66 47627:aceede7c4929
68 try: 68 try:
69 recurse = {b'*': False, b'**': True}[roottail] 69 recurse = {b'*': False, b'**': True}[roottail]
70 except KeyError: 70 except KeyError:
71 repos.append((prefix, root)) 71 repos.append((prefix, root))
72 continue 72 continue
73 roothead = os.path.normpath(os.path.abspath(roothead)) 73 roothead = os.path.normpath(util.abspath(roothead))
74 paths = scmutil.walkrepos(roothead, followsym=True, recurse=recurse) 74 paths = scmutil.walkrepos(roothead, followsym=True, recurse=recurse)
75 repos.extend(urlrepos(prefix, roothead, paths)) 75 repos.extend(urlrepos(prefix, roothead, paths))
76 return repos 76 return repos
77 77
78 78