comparison mercurial/subrepo.py @ 47628:a125cbbc5782

windows: use abspath in subrepo We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11065
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 10 Jul 2021 14:06:29 +0200
parents d55b71393907
children 23921bc857b5
comparison
equal deleted inserted replaced
47627:aceede7c4929 47628:a125cbbc5782
58 get a path or url and if it is a path expand it and return an absolute path 58 get a path or url and if it is a path expand it and return an absolute path
59 """ 59 """
60 expandedpath = urlutil.urllocalpath(util.expandpath(path)) 60 expandedpath = urlutil.urllocalpath(util.expandpath(path))
61 u = urlutil.url(expandedpath) 61 u = urlutil.url(expandedpath)
62 if not u.scheme: 62 if not u.scheme:
63 path = util.normpath(os.path.abspath(u.path)) 63 path = util.normpath(util.abspath(u.path))
64 return path 64 return path
65 65
66 66
67 def _getstorehashcachename(remotepath): 67 def _getstorehashcachename(remotepath):
68 '''get a unique filename for the store hash cache of a remote repository''' 68 '''get a unique filename for the store hash cache of a remote repository'''